
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, setOwnerXDIAddressaddStandardExtensions, after, after, before, before, execute, execute, execute, execute, execute, getContributors, getInterceptors, setContributors, setInterceptorspublic static final String DEFAULT_PATH
public static final String DEFAULT_MIMETYPE
public void init()
throws Exception
MessagingContainerinit in interface MessagingContainerinit in class GraphMessagingContainerExceptionpublic void shutdown()
throws Exception
MessagingContainershutdown in interface MessagingContainershutdown in class GraphMessagingContainerExceptionpublic void execute(MessageEnvelope messageEnvelope, ExecutionContext executionContext, ExecutionResult executionResult) throws Xdi2MessagingException
AbstractMessagingContainerexecute in interface MessagingContainerexecute in class AbstractMessagingContainermessageEnvelope - 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.Xdi2MessagingExceptionpublic String getPath()
public void setPath(String path)
public String getMimeType()
public void setMimeType(String mimeType)
Copyright © 2017. All rights reserved.