ikrs.httpd.resource
Class AbstractResourceAccessor
java.lang.Object
ikrs.httpd.resource.AbstractResourceAccessor
- All Implemented Interfaces:
- ResourceAccessor
- Direct Known Subclasses:
- FileSystemResourceAccessor
public abstract class AbstractResourceAccessor
- extends java.lang.Object
- implements ResourceAccessor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractResourceAccessor
public AbstractResourceAccessor(HTTPHandler handler)
- ...
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