Class PCPServerOperation

java.lang.Object
com.portal.pcm.PCPOperation
com.portal.pcm.PCPServerOperation

public class PCPServerOperation extends PCPOperation
Provides methods to send and receive FLists
  • Constructor Details

    • PCPServerOperation

      public PCPServerOperation(Socket s) throws EBufException
      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

      public FList getContextFlist()
      Returns:
      ctxFlist the Flist saved for context info
    • getUserId

      public Poid getUserId()
      Returns:
      the UserId Poid saved from the incoming request
    • receive

      public FList receive() throws EBufException
      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

      public void send(FList respFlist, int pcpflags) throws EBufException
      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

      public void send(FList respFlist, int pcpflags, int opCode, int opFlags) throws EBufException
      Throws:
      EBufException
    • op

      public FList op(int opCode, int opFlags, FList reqFlist) throws EBufException
      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 execute
      opFlags - The flags
      reqFlist - 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

      public void setUserId(Poid userId)
    • getSendProtoVersion

      public int getSendProtoVersion()
    • setSendProtoVersion

      public void setSendProtoVersion(int proto_vers)