public class PCPServerOperation extends PCPOperation
PCPOperation.Chunk, PCPOperation.PCPFlag
Constructor and Description |
---|
PCPServerOperation(Socket s)
Contructs the object by setting up the
InputStream to the sockets inputStream.
|
Modifier and Type | Method and Description |
---|---|
FList |
getContextFlist() |
int |
getOpCode() |
int |
getOpFlags() |
int |
getPCPFlags() |
int |
getsessionId() |
Poid |
getUserId() |
FList |
op(int opCode,
int opFlags,
FList reqFlist)
Executes the op code specified.
|
FList |
receive()
The receive method is responsible for assembling the
response packets and forming the output flist.
|
void |
send(FList respFlist,
int pcpflags)
Send the Flist to the client application
|
void |
send(FList respFlist,
int pcpflags,
int opCode,
int opFlags) |
void |
setUserId(Poid userId) |
getPCPFlagRequest, getPCPFlagResponse, getSystemProperty, nextChunk
public PCPServerOperation(Socket s) throws EBufException
s
- the Socket that the client connected to.EBufException
public int getOpCode()
public int getOpFlags()
public int getPCPFlags()
public int getsessionId()
public FList getContextFlist()
public Poid getUserId()
public FList receive() throws EBufException
EBufException
public void send(FList respFlist, int pcpflags) throws EBufException
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 classEBufException
public void send(FList respFlist, int pcpflags, int opCode, int opFlags) throws EBufException
EBufException
public FList op(int opCode, int opFlags, FList reqFlist) throws EBufException
opCode
- The opcode to executeopFlags
- The flagsreqFlist
- The Flist for this requestthrows
- EBufException if an error is encountered
in sending the request or receiving a responseEBufException
public void setUserId(Poid userId)
Copyright © 2003, 2023, Oracle and/or its affiliates.