public abstract class MessageBuilderModule extends BaseReceiverModule
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_DEFAULTS |
static String |
PARAM_DELIMITERS |
static String |
PARAM_ERROR_DIRECTORY |
static String |
PARAM_FORMAT |
static String |
PARAM_MIMETYPE |
static String |
PARAM_RESEND_MAX_RETRIES |
static String |
PARAM_SENT_DIRECTORY |
Constructor and Description |
---|
MessageBuilderModule() |
Modifier and Type | Method and Description |
---|---|
void |
buildMessageData(Message msg,
InputStream ip,
String filename) |
Message |
buildMessageMetadata(String filename) |
protected abstract Message |
createMessage() |
void |
init(Session session,
Map<String,String> options)
Component lifecycle hook.
|
protected Message |
processDocument(InputStream ip,
String filename) |
canHandle, doStart, doStop, forceStop, handle, healthcheck, isRunning, start, stop, toString
destroy, getName, getParameter, getParameter, getParameterInt, getParameters, getSession, setParameter, setParameter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
healthcheck, isRunning, start, stop
canHandle, handle
destroy, getName, getParameters, getSession
public static final String PARAM_ERROR_DIRECTORY
public static final String PARAM_SENT_DIRECTORY
public static final String PARAM_FORMAT
public static final String PARAM_DELIMITERS
public static final String PARAM_DEFAULTS
public static final String PARAM_MIMETYPE
public static final String PARAM_RESEND_MAX_RETRIES
public void init(Session session, Map<String,String> options) throws OpenAS2Exception
Component
init
in interface Component
init
in class BaseComponent
session
- the component uses this object to access other componentsoptions
- configuration values for the componentOpenAS2Exception
- If an error occurs while initializing the componentSession
protected Message processDocument(InputStream ip, String filename) throws OpenAS2Exception, FileNotFoundException
protected abstract Message createMessage()
public Message buildMessageMetadata(String filename) throws OpenAS2Exception
OpenAS2Exception
public void buildMessageData(Message msg, InputStream ip, String filename) throws OpenAS2Exception
OpenAS2Exception
Copyright © 2018. All rights reserved.