
public class FileMessagingTarget extends GraphMessagingTarget
Prototype.PrototypingContext| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_MIMETYPE |
static String |
DEFAULT_PATH |
| Constructor and Description |
|---|
FileMessagingTarget() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(MessageEnvelope messageEnvelope,
MessageResult messageResult,
ExecutionContext executionContext)
Executes a message envelope by executing all its messages.
|
String |
getMimeType() |
String |
getPath() |
void |
init()
This method gets called when the messaging target is initialized.
|
void |
setMimeType(String mimeType) |
void |
setPath(String path) |
void |
shutdown()
This method gets called when the messaging target is no longer needed.
|
after, before, exception, getAddressHandler, getGraph, getGraphContextHandler, getOwnerPeerRootXDIArc, getStatementHandler, instanceFor, setGraph, setOwnerPeerRootXDIArcafter, after, before, before, execute, execute, execute, execute, getContributors, getInterceptors, setContributors, setInterceptorspublic static final String DEFAULT_PATH
public static final String DEFAULT_MIMETYPE
public void init()
throws Exception
MessagingTargetinit in interface MessagingTargetinit in class GraphMessagingTargetExceptionpublic void shutdown()
throws Exception
MessagingTargetshutdown in interface MessagingTargetshutdown in class GraphMessagingTargetExceptionpublic void execute(MessageEnvelope messageEnvelope, MessageResult messageResult, ExecutionContext executionContext) throws Xdi2MessagingException
AbstractMessagingTargetexecute in interface MessagingTargetexecute in class AbstractMessagingTargetmessageEnvelope - The XDI message envelope containing XDI messages to be executed.messageResult - The message result.executionContext - An "execution context" object that carries state between
messaging targets, interceptors and contributors.Xdi2MessagingExceptionpublic String getPath()
public void setPath(String path)
public String getMimeType()
public void setMimeType(String mimeType)
Copyright © 2015. All Rights Reserved.