Package org.serviceconnector.scmp
Class SCMPPart
java.lang.Object
org.serviceconnector.scmp.SCMPMessage
org.serviceconnector.scmp.SCMPPart
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SCMPOffsetPart
The Class SCMPPart. Indicates this SCMP is a part of a bigger request/response. Request/Response is complete at the time all parts are sent and put together.
- Author:
- JTraber
- See Also:
-
Field Summary
Fields inherited from class org.serviceconnector.scmp.SCMPMessage
header, SC_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new SCMP part.SCMPPart(SCMPVersion scmpVersion) Instantiates a new SCMPPart.SCMPPart(SCMPVersion scmpVersion, boolean pollRequest) Instantiates a new SCMP part.SCMPPart(SCMPVersion scmpVersion, boolean pollRequest, Map<String, String> baseHeader) Instantiates a new SCMP part. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisPart()Checks if the message is a part.booleanChecks if the message is a poll request in large message sequence.voidsetIsPollRequest(boolean pollRequest) Sets the checks if is poll request.Methods inherited from class org.serviceconnector.scmp.SCMPMessage
getBody, getBodyLength, getBodyOffset, getBodyType, getCacheId, getHeader, getHeader, getHeader, getHeaderBoolean, getHeaderFlag, getHeaderInt, getHttpUrlFileQualifier, getMessageSequenceNr, getMessageType, getPartSize, getSCMPVersion, getServiceName, getSessionId, isBodyOffset, isByteArray, isCached, isComposite, isCompressed, isFault, isKeepAlive, isLargeMessage, isReply, isReqCompleteAfterMarshallingPart, isString, removeHeader, removeHeader, setBody, setBody, setCached, setCacheId, setHeader, setHeader, setHeader, setHeader, setHeader, setHeader, setHeader, setHeader, setHeaderCheckNull, setHeaderFlag, setHttpUrlFileQualifier, setIsReply, setIsReqCompleteAfterMarshallingPart, setMessageType, setMessageType, setPartSize, setServiceName, setSessionId, toString
-
Constructor Details
-
SCMPPart
Instantiates a new SCMPPart.- Parameters:
scmpVersion- the SCMP version
-
SCMPPart
Instantiates a new SCMP part.- Parameters:
scmpVersion- the SCMP versionpollRequest- the poll request
-
SCMPPart
Instantiates a new SCMP part.- Parameters:
scmpVersion- the SCMP versionpollRequest- the poll requestbaseHeader- the base header
-
SCMPPart
Instantiates a new SCMP part. Copy constructor. Make a copy of given object. Uses SCMP Message copy constructor.- Parameters:
toCopyObject- the object to be copied
-
-
Method Details
-
isPart
public boolean isPart()Checks if the message is a part.- Overrides:
isPartin classSCMPMessage- Returns:
- true, if is part
-
isPollRequest
public boolean isPollRequest()Checks if the message is a poll request in large message sequence.- Overrides:
isPollRequestin classSCMPMessage- Returns:
- true, if is poll
-
setIsPollRequest
public void setIsPollRequest(boolean pollRequest) Sets the checks if is poll request.- Parameters:
pollRequest- the new checks if is poll request
-