public class FileMessagingContainer extends GraphMessagingContainer
Prototype.PrototypingContext
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_MIMETYPE |
static String |
DEFAULT_PATH |
Constructor and Description |
---|
FileMessagingContainer() |
Modifier and Type | Method and Description |
---|---|
void |
execute(MessageEnvelope messageEnvelope,
ExecutionContext executionContext,
ExecutionResult executionResult)
Executes a messaging request against this messaging container.
|
String |
getMimeType() |
String |
getPath() |
void |
init()
This method gets called when the messaging container is initialized.
|
void |
setMimeType(String mimeType) |
void |
setPath(String path) |
void |
shutdown()
This method gets called when the messaging container is no longer needed.
|
after, before, exception, getAddressHandler, getGraph, getOwnerPeerRootXDIArc, getOwnerXDIAddress, getStatementHandler, instanceFor, setGraph, setOwnerPeerRootXDIArc, setOwnerXDIAddress
addStandardExtensions, after, after, before, before, execute, execute, execute, execute, execute, getContributors, getInterceptors, setContributors, setInterceptors
public static final String DEFAULT_PATH
public static final String DEFAULT_MIMETYPE
public void init() throws Exception
MessagingContainer
init
in interface MessagingContainer
init
in class GraphMessagingContainer
Exception
public void shutdown() throws Exception
MessagingContainer
shutdown
in interface MessagingContainer
shutdown
in class GraphMessagingContainer
Exception
public void execute(MessageEnvelope messageEnvelope, ExecutionContext executionContext, ExecutionResult executionResult) throws Xdi2MessagingException
AbstractMessagingContainer
execute
in interface MessagingContainer
execute
in class AbstractMessagingContainer
messageEnvelope
- The XDI message envelope to be executed.executionContext
- An "execution context" object that carries state between
messaging containers, interceptors and contributors.executionResult
- The execution result produced by executing the messaging request.Xdi2MessagingException
public String getPath()
public void setPath(String path)
public String getMimeType()
public void setMimeType(String mimeType)
Copyright © 2017. All rights reserved.