org.abstracthorizon.danube.webdav.java
Class JavaWebDAVHandler

java.lang.Object
  extended by org.abstracthorizon.danube.http.BaseReflectionHTTPConnectionHandler
      extended by org.abstracthorizon.danube.webdav.BaseWebDAVResourceConnectionHandler
          extended by org.abstracthorizon.danube.webdav.java.JavaWebDAVHandler
All Implemented Interfaces:
ConnectionHandler, ApplicationContextAware

public class JavaWebDAVHandler
extends BaseWebDAVResourceConnectionHandler
implements ApplicationContextAware

This is convenient extension of BaseWebDAVResourceConnectionHandler that sets java resource adapter.

Author:
Daniel Sendula

Field Summary
protected  JavaWebDAVResourceAdapter javaAdapter
          Java resource adapter
 
Fields inherited from class org.abstracthorizon.danube.webdav.BaseWebDAVResourceConnectionHandler
adapter, bufferSize, collectionRenderer, readOnly, STATUS_FAILED_DEPENDENCY, STATUS_LOCKED
 
Fields inherited from class org.abstracthorizon.danube.http.BaseReflectionHTTPConnectionHandler
cachedMethods, errorResponse, noDefaultHead, noDefaultTrace
 
Constructor Summary
JavaWebDAVHandler()
          Constructor
 
Method Summary
 Object getRootObject()
          Returns root object used for the handler
 void methodPOST(HTTPConnection connection)
          Redirects POST HTTP method to GET
 void setApplicationContext(ApplicationContext context)
          Sets application context of the object.
 void setRootObject(Object root)
          Sets the root object to be used with java resource adapter
 
Methods inherited from class org.abstracthorizon.danube.webdav.BaseWebDAVResourceConnectionHandler
cacheMethods, collectRange, collectTimeouts, deleteLeafImpl, deleteRecursive, findResource, fixUnknownPropsResponse, getCollectionHTMLRenderer, getWebDAVResourceAdapter, isLockedRecursive, isReadOnly, lockImpl, lockRecursive, methodCOPY, methodDELETE, methodGET, methodHEAD, methodLOCK, methodMKCOL, methodMOVE, methodOPTIONS, methodPROPFIND, methodPROPPATCH, methodPUT, methodUNLOCK, obtainProps, obtainPropsRecursive, readRequestXML, setCollectionHTMLRenterer, setReadOnly, setWebDAVResourceAdapter, transmitResource, updateProps, updateProps, updatePropsRecursive
 
Methods inherited from class org.abstracthorizon.danube.http.BaseReflectionHTTPConnectionHandler
getErrorResponse, getNoDefaultHead, getNoDefaultTrace, handleConnection, invokeMethod, methodTRACE, returnError, returnSimpleContent, setErrorResponse, setNoDefaultHead, setNoDefaultTrace, updateDefaultHeadMethod, updateDefaultTraceMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

javaAdapter

protected JavaWebDAVResourceAdapter javaAdapter
Java resource adapter

Constructor Detail

JavaWebDAVHandler

public JavaWebDAVHandler()
Constructor

Method Detail

setApplicationContext

public void setApplicationContext(ApplicationContext context)
                           throws BeansException
Sets application context of the object. It uses application context to set. If this class is used outside of spring framework then use {@link #setRootObject(Object) method. java adapter's root object

Specified by:
setApplicationContext in interface ApplicationContextAware
Parameters:
context - application context this object is created in.
Throws:
BeansException
See Also:
ApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)

getRootObject

public Object getRootObject()
Returns root object used for the handler

Returns:
root object

setRootObject

public void setRootObject(Object root)
Sets the root object to be used with java resource adapter

Parameters:
root - root object

methodPOST

public void methodPOST(HTTPConnection connection)
Redirects POST HTTP method to GET

Parameters:
connection - connection


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.