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)
SandboxTaskContext
SandboxCallback
.execute
in interface SandboxTaskContext
T
- the input type of SandboxCallback
R
- the output type of SandboxCallback
public void log(Level level, Object message)
SandboxTaskContext
SandboxErrorConsumer
in the host.log
in interface SandboxTaskContext
public void sendMessage(com.atlassian.confluence.impl.util.sandbox.SandboxMessage message)
public com.atlassian.confluence.impl.util.sandbox.SandboxMessage receiveMessage()
public void sendStartMarker()
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences