org.abstracthorizon.danube.webdav.xml.dav.request.properties
Class RequestProperty

java.lang.Object
  extended by org.abstracthorizon.danube.webdav.xml.dav.request.AbstractSimpleXMLHandler
      extended by org.abstracthorizon.danube.webdav.xml.dav.request.properties.RequestProperty
All Implemented Interfaces:
XMLParserHandler
Direct Known Subclasses:
CreationDate, DisplayName, GetContentLanguage, GetContentLength, GetContentType, GetETag, GetLastModified, LockDiscovery, ResourceType, Source, SupportedLock

public abstract class RequestProperty
extends AbstractSimpleXMLHandler

Abstract request property class. It defines default behaviour of undefined properties.

Author:
Daniel Sendula

Field Summary
protected static Class<?>[] CONSTRUCTOR_ARGUMENTS_CLASSES
          Constructor argument classes - Status
protected  org.slf4j.Logger logger
          Logger
protected static String packageName
          This package name
 
Fields inherited from class org.abstracthorizon.danube.webdav.xml.dav.request.AbstractSimpleXMLHandler
parent
 
Constructor Summary
RequestProperty(XMLParserHandler parent)
          Constructor
 
Method Summary
protected  ResponseProperty constructResponse(Status status)
          Constructs response property based on supplied status
 ResponseProperty processRemoveProperty(ResourceAdapter webDAVAdapter, Object resource)
          Returns response property with Status.CONFLICT status
 ResponseProperty processResponse(ResourceAdapter adapter, Object resource)
          Returns response property with Status.NOT_FOUND status
 ResponseProperty processSetProperty(ResourceAdapter adapter, Object resource)
          Returns response property with Status.CONFLICT status
 
Methods inherited from class org.abstracthorizon.danube.webdav.xml.dav.request.AbstractSimpleXMLHandler
end, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.slf4j.Logger logger
Logger


CONSTRUCTOR_ARGUMENTS_CLASSES

protected static final Class<?>[] CONSTRUCTOR_ARGUMENTS_CLASSES
Constructor argument classes - Status


packageName

protected static final String packageName
This package name

Constructor Detail

RequestProperty

public RequestProperty(XMLParserHandler parent)
Constructor

Parameters:
parent - parent parser handler
Method Detail

constructResponse

protected ResponseProperty constructResponse(Status status)
Constructs response property based on supplied status

Parameters:
status - status
Returns:
response property from this package

processResponse

public ResponseProperty processResponse(ResourceAdapter adapter,
                                        Object resource)
Returns response property with Status.NOT_FOUND status

Parameters:
adapter - adpater
resource - resource
Returns:
response property with Status.NOT_FOUND status

processSetProperty

public ResponseProperty processSetProperty(ResourceAdapter adapter,
                                           Object resource)
Returns response property with Status.CONFLICT status

Parameters:
adapter - adpater
resource - resource
Returns:
response property with Status.CONFLICT status

processRemoveProperty

public ResponseProperty processRemoveProperty(ResourceAdapter webDAVAdapter,
                                              Object resource)
Returns response property with Status.CONFLICT status

Parameters:
adapter - adpater
resource - resource
Returns:
response property with Status.CONFLICT status


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