Package com.adaptris.core.services
Class InputOutputService
java.lang.Object
com.adaptris.core.ServiceImp
com.adaptris.core.services.InputOutputService
- All Implemented Interfaces:
AdaptrisComponent,ComponentLifecycle,ComponentLifecycleExtension,MessageEventGenerator,Service,StateManagedComponent
@ComponentProfile(summary="Force IO to happen on a message.",
tag="service",
since="3.7.1")
public class InputOutputService
extends ServiceImp
Forces IO to happen from the message inputstream to outputstream.
This service is only included for completeness as there are only a limited number of use-cases for it. For instance, if your
message-factory is a ZipFileBackedMessageFactory (mode=Uncompress) and you do not do any IO on the message in the
workflow then the message may still be compressed when you write it out to the filesystem. Using this service simply forces IO to
happen on the message.
-
Field Summary
Fields inherited from class com.adaptris.core.ServiceImp
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoiddoService(AdaptrisMessage msg) Apply the service to the message.protected voidvoidprepare()Prepare for initialisation.Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stop
-
Constructor Details
-
InputOutputService
public InputOutputService()
-
-
Method Details
-
doService
Description copied from interface:ServiceApply the service to the message.
- Parameters:
msg- theAdaptrisMessageto process- Throws:
ServiceException- wrapping any underlyingExceptions
-
prepare
Description copied from interface:ComponentLifecycleExtensionPrepare for initialisation.- Throws:
CoreException
-
initService
- Specified by:
initServicein classServiceImp- Throws:
CoreException
-
closeService
protected void closeService()- Specified by:
closeServicein classServiceImp
-