Class AbstractActiveNetModule
- java.lang.Object
-
- com.helger.as2lib.AbstractDynamicComponent
-
- com.helger.as2lib.processor.module.AbstractProcessorModule
-
- com.helger.as2lib.processor.module.AbstractActiveModule
-
- com.helger.as2lib.processor.receiver.AbstractActiveReceiverModule
-
- com.helger.as2lib.processor.receiver.AbstractActiveNetModule
-
- All Implemented Interfaces:
IDynamicComponent,IProcessorActiveModule,IProcessorModule,IProcessorReceiverModule
- Direct Known Subclasses:
AS2MDNReceiverModule,AS2ReceiverModule
public abstract class AbstractActiveNetModule extends AbstractActiveReceiverModule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractActiveNetModule.ConnectionThreadprotected static classAbstractActiveNetModule.MainThread
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_ADDRESSstatic StringATTR_ERROR_DIRECTORYstatic StringATTR_ERROR_FORMATstatic StringATTR_ERROR_STORE_BODYstatic StringATTR_PORTstatic StringATTR_QUOTE_HEADER_VALUESAttribute name for quoting header values (boolean)static StringDEFAULT_ERROR_FORMATstatic booleanDEFAULT_QUOTE_HEADER_VALUESDefault quote header values: falsestatic StringDISP_DECOMPRESSION_ERRORstatic StringDISP_DECRYPTION_ERRORstatic StringDISP_PARSING_MIME_FAILEDstatic StringDISP_PARTNERSHIP_NOT_FOUNDstatic StringDISP_STORAGE_FAILEDstatic StringDISP_SUCCESSstatic StringDISP_VALIDATION_FAILEDstatic StringDISP_VERIFY_SIGNATURE_FAILEDstatic StringDP_DECRYPTEDstatic StringDP_HEADERstatic StringDP_VERIFIEDstatic StringMSG_DATEstatic StringMSG_RECEIVERstatic StringMSG_SENDERstatic StringMSG_SOURCE_ADDRESSstatic StringMSG_SUBJECT-
Fields inherited from class com.helger.as2lib.AbstractDynamicComponent
m_aRWLock
-
-
Constructor Summary
Constructors Constructor Description AbstractActiveNetModule()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract INetModuleHandlercreateHandler()voiddoStart()Implement the internal start logic.voiddoStop()Implement the internal stop logic.booleanequals(Object o)StringgetAddress()StringgetErrorDirectory()StringgetErrorFormat()intgetPort()voidhandleError(IMessage aMsg, AS2Exception aSrcEx)inthashCode()booleanisErrorStoreBody()booleanisQuoteHeaderValues()voidsetAddress(String sAddress)voidsetErrorDirectory(String sErrorDirectory)voidsetErrorFormat(String sErrorFormat)voidsetErrorStoreBody(boolean bErrorStoreBody)voidsetPort(int nPort)voidsetQuoteHeaderValues(boolean bQuoteHeaderValues)-
Methods inherited from class com.helger.as2lib.processor.module.AbstractActiveModule
canHandle, forceStop, handle, isRunning, start, stop, toString
-
Methods inherited from class com.helger.as2lib.AbstractDynamicComponent
attrs, getAttributeAsIntRequired, getAttributeAsStringRequired, getName, getSession, initDynamicComponent
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.as2lib.IDynamicComponent
attrs, getName, getSession, initDynamicComponent
-
Methods inherited from interface com.helger.as2lib.processor.module.IProcessorActiveModule
isRunning, start, stop
-
Methods inherited from interface com.helger.as2lib.processor.module.IProcessorModule
canHandle, handle
-
-
-
-
Field Detail
-
ATTR_ADDRESS
public static final String ATTR_ADDRESS
- See Also:
- Constant Field Values
-
ATTR_PORT
public static final String ATTR_PORT
- See Also:
- Constant Field Values
-
ATTR_ERROR_DIRECTORY
public static final String ATTR_ERROR_DIRECTORY
- See Also:
- Constant Field Values
-
ATTR_ERROR_FORMAT
public static final String ATTR_ERROR_FORMAT
- See Also:
- Constant Field Values
-
DEFAULT_ERROR_FORMAT
public static final String DEFAULT_ERROR_FORMAT
- See Also:
- Constant Field Values
-
ATTR_ERROR_STORE_BODY
public static final String ATTR_ERROR_STORE_BODY
- See Also:
- Constant Field Values
-
ATTR_QUOTE_HEADER_VALUES
public static final String ATTR_QUOTE_HEADER_VALUES
Attribute name for quoting header values (boolean)- See Also:
- Constant Field Values
-
DEFAULT_QUOTE_HEADER_VALUES
public static final boolean DEFAULT_QUOTE_HEADER_VALUES
Default quote header values: false- See Also:
- Constant Field Values
-
MSG_SENDER
public static final String MSG_SENDER
- See Also:
- Constant Field Values
-
MSG_RECEIVER
public static final String MSG_RECEIVER
- See Also:
- Constant Field Values
-
MSG_DATE
public static final String MSG_DATE
- See Also:
- Constant Field Values
-
MSG_SUBJECT
public static final String MSG_SUBJECT
- See Also:
- Constant Field Values
-
MSG_SOURCE_ADDRESS
public static final String MSG_SOURCE_ADDRESS
- See Also:
- Constant Field Values
-
DP_HEADER
public static final String DP_HEADER
- See Also:
- Constant Field Values
-
DP_DECRYPTED
public static final String DP_DECRYPTED
- See Also:
- Constant Field Values
-
DP_VERIFIED
public static final String DP_VERIFIED
- See Also:
- Constant Field Values
-
DISP_PARTNERSHIP_NOT_FOUND
public static final String DISP_PARTNERSHIP_NOT_FOUND
- See Also:
- Constant Field Values
-
DISP_PARSING_MIME_FAILED
public static final String DISP_PARSING_MIME_FAILED
- See Also:
- Constant Field Values
-
DISP_DECRYPTION_ERROR
public static final String DISP_DECRYPTION_ERROR
- See Also:
- Constant Field Values
-
DISP_DECOMPRESSION_ERROR
public static final String DISP_DECOMPRESSION_ERROR
- See Also:
- Constant Field Values
-
DISP_VERIFY_SIGNATURE_FAILED
public static final String DISP_VERIFY_SIGNATURE_FAILED
- See Also:
- Constant Field Values
-
DISP_VALIDATION_FAILED
public static final String DISP_VALIDATION_FAILED
- See Also:
- Constant Field Values
-
DISP_STORAGE_FAILED
public static final String DISP_STORAGE_FAILED
- See Also:
- Constant Field Values
-
DISP_SUCCESS
public static final String DISP_SUCCESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPort
public final int getPort()
-
setPort
public final void setPort(int nPort)
-
isErrorStoreBody
public final boolean isErrorStoreBody()
-
setErrorStoreBody
public final void setErrorStoreBody(boolean bErrorStoreBody)
-
isQuoteHeaderValues
public final boolean isQuoteHeaderValues()
-
setQuoteHeaderValues
public final void setQuoteHeaderValues(boolean bQuoteHeaderValues)
-
doStart
public void doStart() throws AS2ExceptionDescription copied from class:AbstractActiveModuleImplement the internal start logic.- Specified by:
doStartin classAbstractActiveModule- Throws:
AS2Exception- In case of an error.
-
doStop
public void doStop() throws AS2ExceptionDescription copied from class:AbstractActiveModuleImplement the internal stop logic.- Specified by:
doStopin classAbstractActiveModule- Throws:
AS2Exception- In case of an error.
-
createHandler
@Nonnull public abstract INetModuleHandler createHandler()
-
handleError
public void handleError(@Nonnull IMessage aMsg, @Nonnull AS2Exception aSrcEx)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractActiveModule
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractActiveModule
-
-