org.nodal.nav
Class OpaqueHandler

java.lang.Object
  extended byorg.nodal.nav.OpaqueHandler

public abstract class OpaqueHandler
extends java.lang.Object

Author:
leei

Constructor Summary
protected OpaqueHandler(java.lang.String scheme)
          This constructor registers the OpaqueHandler with the handler Map.
 
Method Summary
static Path applyOpaque(java.lang.String scheme, java.lang.String opaque)
          Apply the opaque operator to the given scheme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpaqueHandler

protected OpaqueHandler(java.lang.String scheme)
This constructor registers the OpaqueHandler with the handler Map.

Method Detail

applyOpaque

public static Path applyOpaque(java.lang.String scheme,
                               java.lang.String opaque)
                        throws Path.Failure
Apply the opaque operator to the given scheme. If there is an OpaqueHandler for this scheme, then use it to parse the opaque argument and apply them to the scheme's Path.

Parameters:
scheme - a String for a URI scheme
opaque - a String representing the opaque argument to that scheme
Returns:
a Path that includes the scheme and a possibly parsed
Throws:
Path.Failure - if any of these steps fail