public class SandboxServerContext extends Object implements SandboxTaskContext
| Constructor and Description |
|---|
SandboxServerContext(InputStream inputStream,
OutputStream outputStream,
PrintStream errorStream,
Level logLevel) |
| Modifier and Type | Method and Description |
|---|---|
<T,R> R |
execute(SandboxCallback<T,R> callback,
T input)
Calls the given
SandboxCallback. |
void |
log(Level level,
Object message)
Logs a message so it will be available for consuming by
SandboxErrorConsumer in the host. |
com.atlassian.confluence.impl.util.sandbox.SandboxMessage |
receiveMessage() |
void |
sendMessage(com.atlassian.confluence.impl.util.sandbox.SandboxMessage message) |
void |
sendStartMarker() |
public SandboxServerContext(InputStream inputStream, OutputStream outputStream, PrintStream errorStream, Level logLevel)
public <T,R> R execute(SandboxCallback<T,R> callback, T input)
SandboxTaskContextSandboxCallback.execute in interface SandboxTaskContextT - the input type of SandboxCallbackR - the output type of SandboxCallbackpublic void log(Level level, Object message)
SandboxTaskContextSandboxErrorConsumer in the host.log in interface SandboxTaskContextpublic void sendMessage(com.atlassian.confluence.impl.util.sandbox.SandboxMessage message)
public com.atlassian.confluence.impl.util.sandbox.SandboxMessage receiveMessage()
public void sendStartMarker()
Copyright © 2003–2022 Atlassian. All rights reserved.