ikrs.httpd.resource
Class AbstractResourceAccessor

java.lang.Object
  extended by ikrs.httpd.resource.AbstractResourceAccessor
All Implemented Interfaces:
ResourceAccessor
Direct Known Subclasses:
FileSystemResourceAccessor

public abstract class AbstractResourceAccessor
extends java.lang.Object
implements ResourceAccessor


Constructor Summary
AbstractResourceAccessor(HTTPHandler handler)
          ...
 
Method Summary
 HTTPHandler getHTTPHandler()
          Get the top level http handler.
abstract  Resource locate(java.net.URI uri, HTTPHeaders headers, PostDataWrapper postData, java.util.Map<java.lang.String,BasicType> additionalSettings, java.util.Map<java.lang.String,BasicType> optionalReturnSettings, java.util.UUID sessionID)
          This method locates the desired resource addressed by the given URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractResourceAccessor

public AbstractResourceAccessor(HTTPHandler handler)
...

Method Detail

getHTTPHandler

public HTTPHandler getHTTPHandler()
Get the top level http handler.


locate

public abstract Resource locate(java.net.URI uri,
                                HTTPHeaders headers,
                                PostDataWrapper postData,
                                java.util.Map<java.lang.String,BasicType> additionalSettings,
                                java.util.Map<java.lang.String,BasicType> optionalReturnSettings,
                                java.util.UUID sessionID)
                         throws java.util.MissingResourceException,
                                AuthorizationException,
                                HeaderFormatException,
                                DataFormatException,
                                UnsupportedFormatException,
                                ConfigurationException,
                                java.lang.SecurityException,
                                java.io.IOException
This method locates the desired resource addressed by the given URI.

Specified by:
locate in interface ResourceAccessor
Throws:
ResouceMissingException - If the specified resource cannot be found.
AuthorizationException - If the requested resource requires authorization.
HeaderFormatException - If the passed headers are malformed.
DataFormatException - If the passed data is malformed.
ConfigurationException - If the system encounters any server configuration issues.
java.lang.SecurityException - If the requested resource is not accessible (forbidden).
java.io.IOException - If any IO errors occur.
java.util.MissingResourceException
UnsupportedFormatException