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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
doService
(AdaptrisMessage msg) Apply the service to the message.protected void
void
prepare()
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:Service
Apply the service to the message.
- Parameters:
msg
- theAdaptrisMessage
to process- Throws:
ServiceException
- wrapping any underlyingException
s
-
prepare
Description copied from interface:ComponentLifecycleExtension
Prepare for initialisation.- Throws:
CoreException
-
initService
- Specified by:
initService
in classServiceImp
- Throws:
CoreException
-
closeService
protected void closeService()- Specified by:
closeService
in classServiceImp
-