Class AbstractResponse

java.lang.Object
net.handle.hdllib.AbstractMessage
net.handle.hdllib.AbstractResponse
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
ChallengeResponse, CreateHandleResponse, DumpHandlesResponse, ErrorResponse, GenericResponse, GetSiteInfoResponse, ListHandlesResponse, ListNAsResponse, NextTxnIdResponse, ResolutionResponse, RetrieveTxnResponse, ServiceReferralResponse, SessionSetupResponse, VerifyAuthResponse

public abstract class AbstractResponse extends AbstractMessage
  • Field Details

    • stream

      public InputStream stream
    • socket

      public Socket socket
    • secureStream

      public boolean secureStream
    • streaming

      public boolean streaming
  • Constructor Details

    • AbstractResponse

      public AbstractResponse()
    • AbstractResponse

      public AbstractResponse(int opCode, int responseCode)
    • AbstractResponse

      public AbstractResponse(AbstractRequest req, int responseCode) throws HandleException
      Throws:
      HandleException
  • Method Details

    • getContinuedResponse

      public AbstractResponse getContinuedResponse()
      If this message is to-be-continued, this method is called to get subsequent messages until it returns null which will indicate that the current message is the last.
    • takeDigestOfRequest

      public final void takeDigestOfRequest(AbstractMessage req) throws HandleException
      Throws:
      HandleException
    • streamResponse

      public void streamResponse(SignedOutputStream out) throws HandleException
      Write the response to the specified output stream. By default this does nothing. This should be over-ridden by responses that set streaming to true.
      Throws:
      HandleException