Modifier and Type | Method and Description |
---|---|
RpcPacketFieldRule |
CommandEnv.getFieldRule() |
protected RpcPacketFieldRule |
RpcServer.getRpcPacketFieldRule(Map<String,Object> inMap,
CmdSpec cmdSpec)
Get the RPC packet field rule for skipping the charset conversion of a
range of RPC packet fields; leave the values as bytes.
|
Modifier and Type | Method and Description |
---|---|
void |
CommandEnv.setFieldRule(RpcPacketFieldRule fieldRule) |
Modifier and Type | Method and Description |
---|---|
abstract RpcPacket |
RpcConnection.getRpcPacket(RpcPacketFieldRule fieldRule,
IFilterCallback filterCallback)
Get the next RPC packet from the receive queue with an optional rule to
handle the RPC packet fields.
|
Modifier and Type | Method and Description |
---|---|
static RpcPacket |
RpcPacket.constructRpcPacket(RpcPacketPreamble preamble,
byte[] bytes,
boolean isUnicodeServer,
Charset charset,
RpcPacketFieldRule fieldRule,
IFilterCallback filterCallback)
Construct an RPC packet from the passed-in preamble, bytes, charset and fieldRule.
|
static Object[] |
RpcPacketField.retrievePacketField(ByteBuffer buf,
boolean isUnicodeServer,
Charset charset,
RpcPacketFieldRule fieldRule)
Attempt to pick off a name / value field pair from the passed-in byte
buffer with an optional rule to handle the RPC packet fields.
|
Modifier and Type | Class and Description |
---|---|
class |
RpcPacketFieldPatternRule
Defines the rule for pattern matching the field names.
|
class |
RpcPacketFieldRangeRule
Defines the rule for a range of fields with a start field (inclusive) and a stop
field (non-inclusive).
|
Modifier and Type | Method and Description |
---|---|
static RpcPacketFieldRule |
RpcPacketFieldRule.getInstance(Map<String,Object> cmdMap)
Factory static method to create an instance of a subclass based on the
content of a command map.
|
Modifier and Type | Method and Description |
---|---|
RpcPacket |
RpcStreamConnection.getRpcPacket(RpcPacketFieldRule fieldRule,
IFilterCallback filterCallback)
Get a Perforce RPC packet from the underlying stream with an optional
rule to handle the RPC packet fields.
|
Copyright © 2017 Perforce Software. All Rights Reserved.