Class GetPortRequest
java.lang.Object
com.emc.ecs.nfsclient.rpc.RpcRequest
com.emc.ecs.nfsclient.portmap.GetPortRequest
A Portmapper GETPORT request, as specified by https://tools.ietf.org/html/rfc1833.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intTCP/IP Protocol number constant for Portmap requests.static final intUDP/IP Protocol number constant for Portmap requests.Fields inherited from class RpcRequest
CHARSET -
Constructor Summary
ConstructorsConstructorDescriptionGetPortRequest(int programToQuery, int programVersion) Simple constructor for calls, using the default TCP/IP protocol.GetPortRequest(int programToQuery, int programVersion, int networkProtocol) -
Method Summary
Modifier and TypeMethodDescriptionReturns an appropriate error message.voidmarshalling(Xdr x) Writes the RPC call header and authentication credentials to the XDR buffer.toString()Methods inherited from class RpcRequest
cloneFileHandle, isUsePrivilegedPort, setUsePrivilegedPort, startToString, trimFileName
-
Field Details
-
IPPROTO_TCP
public static final int IPPROTO_TCPTCP/IP Protocol number constant for Portmap requests.- See Also:
-
IPPROTO_UDP
public static final int IPPROTO_UDPUDP/IP Protocol number constant for Portmap requests.- See Also:
-
-
Constructor Details
-
GetPortRequest
public GetPortRequest(int programToQuery, int programVersion) Simple constructor for calls, using the default TCP/IP protocol.- Parameters:
programToQuery- The RPC number for the program that will be used for later queries.programVersion- The RPC number for the program version that will be used for later queries.
-
GetPortRequest
public GetPortRequest(int programToQuery, int programVersion, int networkProtocol) - Parameters:
programToQuery- The RPC number for the program that will be used for later queries.programVersion- The RPC number for the program version that will be used for later queries.networkProtocol- The RPC number for the network protocol that will be used for later queries.
-
-
Method Details
-
marshalling
Writes the RPC call header and authentication credentials to the XDR buffer.- Overrides:
marshallingin classRpcRequest
-
getErrorMessage
Returns an appropriate error message.- Specified by:
getErrorMessagein classRpcRequest
-
toString
-