Class NfsResponseHandler<T extends NfsResponseBase>

java.lang.Object
com.emc.ecs.nfsclient.rpc.RpcResponseHandler<T>
com.emc.ecs.nfsclient.nfs.NfsResponseHandler<T>

public abstract class NfsResponseHandler<T extends NfsResponseBase> extends RpcResponseHandler<T>
The NFS response handler, used in the wrapper class for post-response actions, including error checking. This base class performs just basic response correctness checking that applies to all NFS responses.
  • Constructor Details

    • NfsResponseHandler

      public NfsResponseHandler()
  • Method Details

    • checkResponse

      public void checkResponse(RpcRequest request) throws IOException
      This is implemented in all concrete subclasses to check responses for validity, and throws an IOException if the response indicates that the request failed.
      Specified by:
      checkResponse in class RpcResponseHandler<T extends NfsResponseBase>
      Parameters:
      request - This is used for error messages, to aid debugging, since the response will likely not have enough data to determine the request that caused it.
      Throws:
      IOException