org.abstracthorizon.danube.webdav.fs.properties
Class GetContentType

java.lang.Object
  extended by org.abstracthorizon.danube.webdav.xml.dav.request.AbstractSimpleXMLHandler
      extended by org.abstracthorizon.danube.webdav.xml.dav.request.properties.RequestProperty
          extended by org.abstracthorizon.danube.webdav.xml.dav.request.properties.GetContentType
              extended by org.abstracthorizon.danube.webdav.fs.properties.GetContentType
All Implemented Interfaces:
XMLParserHandler

public class GetContentType
extends GetContentType

This request property returns file's mime type

Author:
Daniel Sendula

Field Summary
protected  javax.activation.FileTypeMap fileTypeMap
          File type map
 
Fields inherited from class org.abstracthorizon.danube.webdav.xml.dav.request.properties.GetContentType
contentType
 
Fields inherited from class org.abstracthorizon.danube.webdav.xml.dav.request.properties.RequestProperty
CONSTRUCTOR_ARGUMENTS_CLASSES, logger, packageName
 
Fields inherited from class org.abstracthorizon.danube.webdav.xml.dav.request.AbstractSimpleXMLHandler
parent
 
Constructor Summary
GetContentType(XMLParserHandler parent)
          Constructor
 
Method Summary
 ResponseProperty processResponse(ResourceAdapter adapter, Object resource)
          Returns file's content type consulting FileTypeMap
 
Methods inherited from class org.abstracthorizon.danube.webdav.xml.dav.request.properties.GetContentType
end, getContentType, toString
 
Methods inherited from class org.abstracthorizon.danube.webdav.xml.dav.request.properties.RequestProperty
constructResponse, processRemoveProperty, processSetProperty
 
Methods inherited from class org.abstracthorizon.danube.webdav.xml.dav.request.AbstractSimpleXMLHandler
start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fileTypeMap

protected javax.activation.FileTypeMap fileTypeMap
File type map

Constructor Detail

GetContentType

public GetContentType(XMLParserHandler parent)
Constructor

Parameters:
parent - parser handler
Method Detail

processResponse

public ResponseProperty processResponse(ResourceAdapter adapter,
                                        Object resource)
Returns file's content type consulting FileTypeMap

Overrides:
processResponse in class RequestProperty
Parameters:
adapter - adapter
resource - a file
Returns:
response property


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