Package com.portal.pcm
Class PCPServerOperation
java.lang.Object
com.portal.pcm.PCPOperation
com.portal.pcm.PCPServerOperation
Provides methods to send and receive FLists
-
Nested Class Summary
Nested classes/interfaces inherited from class com.portal.pcm.PCPOperation
PCPOperation.Chunk, PCPOperation.PCPFlag -
Constructor Summary
ConstructorsConstructorDescriptionContructs the object by setting up the InputStream to the sockets inputStream. -
Method Summary
Modifier and TypeMethodDescriptionintintintintintExecutes the op code specified.receive()The receive method is responsible for assembling the response packets and forming the output flist.voidSend the Flist to the client applicationvoidvoidsetSendProtoVersion(int proto_vers) voidMethods inherited from class com.portal.pcm.PCPOperation
getPCPFlagRequest, getPCPFlagResponse, getSystemProperty, nextChunk
-
Constructor Details
-
PCPServerOperation
Contructs the object by setting up the InputStream to the sockets inputStream. The OutputStream is set to the sockets OutputStream.- Parameters:
s- the Socket that the client connected to.- Throws:
EBufException
-
-
Method Details
-
getOpCode
public int getOpCode()- Returns:
- opCode the opcode specified in the request
-
getOpFlags
public int getOpFlags()- Returns:
- opFlags the opFlags specified in the request
-
getPCPFlags
public int getPCPFlags()- Returns:
- pcpFlags the pcpFlags specified in the request
-
getsessionId
public int getsessionId()- Returns:
- sessionId the sessionId specified in the request
-
getContextFlist
- Returns:
- ctxFlist the Flist saved for context info
-
getUserId
- Returns:
- the UserId Poid saved from the incoming request
-
receive
The receive method is responsible for assembling the response packets and forming the output flist.- Returns:
- FList the FList that the client (CM) sent us. This method's code is identical to the receive() method implemented by JP for the PCPOperation class
- Throws:
EBufException
-
send
Send the Flist to the client application- Parameters:
respFlist- the response Flist to the clients request.pcpflags- is either request or response This method's code is identical to the resend() method implemented by JP for the PCPOperation class- Throws:
EBufException
-
send
- Throws:
EBufException
-
op
Executes the op code specified. It sends a request to the CM and gets a response back for the base op code specfied- Parameters:
opCode- The opcode to executeopFlags- The flagsreqFlist- The Flist for this request- Returns:
- The output Flist
- Throws:
EBufException- if an error is encountered in sending the request or receiving a response
-
setUserId
-
getSendProtoVersion
public int getSendProtoVersion() -
setSendProtoVersion
public void setSendProtoVersion(int proto_vers)
-