Class GetPortRequest

java.lang.Object
com.emc.ecs.nfsclient.rpc.RpcRequest
com.emc.ecs.nfsclient.portmap.GetPortRequest

public class GetPortRequest extends RpcRequest
A Portmapper GETPORT request, as specified by https://tools.ietf.org/html/rfc1833.
  • Field Details

    • IPPROTO_TCP

      public static final int IPPROTO_TCP
      TCP/IP Protocol number constant for Portmap requests.
      See Also:
    • IPPROTO_UDP

      public static final int IPPROTO_UDP
      UDP/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

      public void marshalling(Xdr x)
      Writes the RPC call header and authentication credentials to the XDR buffer.
      Overrides:
      marshalling in class RpcRequest
    • getErrorMessage

      public String getErrorMessage()
      Returns an appropriate error message.
      Specified by:
      getErrorMessage in class RpcRequest
    • toString

      public String toString()
      Overrides:
      toString in class Object