public class PCPServerOperation extends PCPOperation
PCPOperation.Chunk, PCPOperation.PCPFlag| Constructor and Description |
|---|
PCPServerOperation(java.net.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, nextChunkpublic PCPServerOperation(java.net.Socket s)
throws EBufException
s - the Socket that the client connected to.EBufExceptionpublic int getOpCode()
public int getOpFlags()
public int getPCPFlags()
public int getsessionId()
public FList getContextFlist()
public Poid getUserId()
public FList receive() throws EBufException
EBufExceptionpublic 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 classEBufExceptionpublic void send(FList respFlist, int pcpflags, int opCode, int opFlags) throws EBufException
EBufExceptionpublic 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 responseEBufExceptionpublic void setUserId(Poid userId)