Class AbstractRequest

java.lang.Object
net.handle.hdllib.AbstractMessage
net.handle.hdllib.AbstractRequest
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
AddValueRequest, ChallengeAnswerRequest, CreateHandleRequest, DeleteHandleRequest, DumpHandlesRequest, GenericRequest, HomeNaRequest, ListHandlesRequest, ListNAsRequest, ModifyValueRequest, RemoveValueRequest, ResolutionRequest, RetrieveTxnRequest, SessionExchangeKeyRequest, SessionSetupRequest, UnhomeNaRequest, VerifyAuthRequest

public abstract class AbstractRequest extends AbstractMessage
Base class for all request types. Holds the Handle to which the request applies as well as the HS_NAMESPACE information that was acquired during the resolution process
  • Field Details

  • Constructor Details

    • AbstractRequest

      public AbstractRequest(byte[] handle, int opCode, AuthenticationInfo authInfo)
  • Method Details

    • clone

      public AbstractRequest clone()
      Overrides:
      clone in class AbstractMessage
    • getNamespace

      public NamespaceInfo getNamespace()
      Returns the information for the most specific namespace that was encountered when performing this resolution. Higher level namespaces can be accessed using the getParentNamespace() method of NamespaceInfo.
    • setNamespace

      public void setNamespace(NamespaceInfo namespace)
      Set the most specific namespace containing the identifier being resolved. This will set the parent of the given namespace to the current namespace.
    • setNamespaceExactly

      public void setNamespaceExactly(NamespaceInfo namespace)
      Set the most exact namespace containing the identifier being resolved. The current namespace is discarded and the entire hierarchy of the given namespace is retained.
    • clearBuffers

      public void clearBuffers()
      Override the clearing of buffers to also clear the namespace information
      Overrides:
      clearBuffers in class AbstractMessage
    • toString

      public String toString()
      Overrides:
      toString in class AbstractMessage
    • signMessageForSession

      public void signMessageForSession() throws HandleException
      Throws:
      HandleException