Class SandboxServerContext
java.lang.Object
com.atlassian.confluence.impl.util.sandbox.SandboxServerContext
- All Implemented Interfaces:
SandboxTaskContext
- Since:
- 6.10
-
Constructor Summary
ConstructorDescriptionSandboxServerContext
(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
.void
Logs a message so it will be available for consuming bySandboxErrorConsumer
in the host.com.atlassian.confluence.impl.util.sandbox.SandboxMessage
void
sendMessage
(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:SandboxTaskContext
Calls the givenSandboxCallback
.- Specified by:
execute
in interfaceSandboxTaskContext
- Type Parameters:
T
- the input type ofSandboxCallback
R
- the output type ofSandboxCallback
-
log
Description copied from interface:SandboxTaskContext
Logs a message so it will be available for consuming bySandboxErrorConsumer
in the host.- Specified by:
log
in 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()
-