Class SandboxServerContext
java.lang.Object
com.atlassian.confluence.impl.util.sandbox.SandboxServerContext
- All Implemented Interfaces:
SandboxTaskContext
- Since:
- 6.10
-
Constructor Summary
ConstructorsConstructorDescriptionSandboxServerContext(InputStream inputStream, OutputStream outputStream, PrintStream errorStream, Level logLevel) -
Method Summary
Modifier and TypeMethodDescription<T,R> R execute(SandboxCallback<T, R> callback, T input) Calls the givenSandboxCallback.voidLogs a message so it will be available for consuming bySandboxErrorConsumerin the host.com.atlassian.confluence.impl.util.sandbox.SandboxMessagevoidsendMessage(com.atlassian.confluence.impl.util.sandbox.SandboxMessage message) void
-
Constructor Details
-
SandboxServerContext
public SandboxServerContext(InputStream inputStream, OutputStream outputStream, PrintStream errorStream, Level logLevel)
-
-
Method Details
-
execute
Description copied from interface:SandboxTaskContextCalls the givenSandboxCallback.- Specified by:
executein interfaceSandboxTaskContext- Type Parameters:
T- the input type ofSandboxCallbackR- the output type ofSandboxCallback
-
log
Description copied from interface:SandboxTaskContextLogs a message so it will be available for consuming bySandboxErrorConsumerin the host.- Specified by:
login interfaceSandboxTaskContext
-
sendMessage
public void sendMessage(com.atlassian.confluence.impl.util.sandbox.SandboxMessage message) -
receiveMessage
public com.atlassian.confluence.impl.util.sandbox.SandboxMessage receiveMessage() -
sendStartMarker
public void sendStartMarker()
-