Class Handler


  • public class Handler
    extends java.net.URLStreamHandler
    This class is a stream protocol handler that knows how to make a connection for a SAFKeyRing protocol URL.
    • Constructor Summary

      Constructors 
      Constructor Description
      Handler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.URLConnection openConnection​(java.net.URL u)
      Opens a connection to the object referenced by the URL argument.
      void parseURL​(java.net.URL u, java.lang.String spec, int start, int limit)
      Parses the string representation of a URL into a URL object.
      • Methods inherited from class java.net.URLStreamHandler

        equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, sameFile, setURL, setURL, toExternalForm
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Handler

        public Handler()
    • Method Detail

      • parseURL

        public void parseURL​(java.net.URL u,
                             java.lang.String spec,
                             int start,
                             int limit)
        Parses the string representation of a URL into a URL object. If there is any inherited context, then it has already been copied into the URL argument. This method parses the string representation as if it were a safkeyring specification.
        Overrides:
        parseURL in class java.net.URLStreamHandler
        Parameters:
        u - the URL to receive the result of parsing
        spec - the String representing the URL to be parsed
        start - the character index at which to begin parsing. This is just past the ':' that specifies the determination of the protocol name
        limit - the character position to stop parsing at
      • openConnection

        public java.net.URLConnection openConnection​(java.net.URL u)
        Opens a connection to the object referenced by the URL argument.
        Specified by:
        openConnection in class java.net.URLStreamHandler
        Parameters:
        u - the URL that this connects to
        Returns:
        a URLConnection object for the URL.