public abstract class NetModule extends BaseReceiverModule
Modifier and Type | Class and Description |
---|---|
protected class |
NetModule.ConnectionHandler |
protected class |
NetModule.HTTPServerThread |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ERRORS |
static String |
PARAM_ADDRESS |
static String |
PARAM_ERROR_DIRECTORY |
static String |
PARAM_ERRORS |
static String |
PARAM_PORT |
static String |
PARAM_PROTOCOL |
static String |
PARAM_SSL_KEYSTORE |
static String |
PARAM_SSL_KEYSTORE_PASSWORD |
static String |
PARAM_SSL_PROTOCOL |
Constructor and Description |
---|
NetModule() |
Modifier and Type | Method and Description |
---|---|
void |
doStart() |
void |
doStop() |
protected abstract NetModuleHandler |
getHandler() |
protected void |
handleError(Message msg,
OpenAS2Exception oae) |
boolean |
healthcheck(List<String> failures)
When invoked, the module must run a self check to verify it is functioning correctly.
|
void |
init(Session session,
Map<String,String> options)
Component lifecycle hook.
|
canHandle, forceStop, handle, isRunning, start, stop, toString
destroy, getName, getParameter, getParameter, getParameterInt, getParameters, getSession, setParameter, setParameter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isRunning, start, stop
canHandle, handle
destroy, getName, getParameters, getSession
public static final String PARAM_ADDRESS
public static final String PARAM_PORT
public static final String PARAM_PROTOCOL
public static final String PARAM_SSL_KEYSTORE
public static final String PARAM_SSL_KEYSTORE_PASSWORD
public static final String PARAM_SSL_PROTOCOL
public static final String PARAM_ERROR_DIRECTORY
public static final String PARAM_ERRORS
public static final String DEFAULT_ERRORS
public void doStart() throws OpenAS2Exception
doStart
in class BaseActiveModule
OpenAS2Exception
public void doStop() throws OpenAS2Exception
doStop
in class BaseActiveModule
OpenAS2Exception
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
public boolean healthcheck(List<String> failures)
ActiveModule
healthcheck
in interface ActiveModule
healthcheck
in class BaseActiveModule
failures
- - a list of failures if any occurprotected abstract NetModuleHandler getHandler()
protected void handleError(Message msg, OpenAS2Exception oae)
Copyright © 2018. All rights reserved.