Xindice API
version 1.2m1

org.apache.xindice.webadmin.webdav.components.props
Class ContentType

java.lang.Object
  extended byorg.apache.xindice.webadmin.webdav.components.props.ContentType
All Implemented Interfaces:
DAVProperty

public class ContentType
extends Object
implements DAVProperty

ContentType creates a response node that identifies content type of the collection entry. It is not applicable for collections and always contains "text/xml" for documents. For binary entries ContentType attemps to guess content type, if unsuccessful, it will assume default binary type of "application/octet-stream".

Example:

 <getcontenttype>
     text/xml
 </getcontenttype>
 

Version:
$Revision: 541515 $, $Date: 2007-05-24 22:45:06 -0400 (Thu, 24 May 2007) $

Constructor Summary
ContentType()
           
 
Method Summary
 String getName()
          Returns property name
 PartialResponse.Content getProperty(Collection col)
          Builds a property content tree for collection.
 PartialResponse.Content getProperty(Entry entry)
          Builds a property content tree for collection entry.
 PartialResponse.Content getRootProperty()
          Builds a property content tree for the root node ("/").
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentType

public ContentType()
Method Detail

getName

public String getName()
Description copied from interface: DAVProperty
Returns property name

Specified by:
getName in interface DAVProperty
Returns:
property name

getRootProperty

public PartialResponse.Content getRootProperty()
Description copied from interface: DAVProperty
Builds a property content tree for the root node ("/").

Specified by:
getRootProperty in interface DAVProperty
Returns:
Property content tree or null, if property is not applicable.

getProperty

public PartialResponse.Content getProperty(Collection col)
Description copied from interface: DAVProperty
Builds a property content tree for collection.

Specified by:
getProperty in interface DAVProperty
Parameters:
col - Collection
Returns:
Property content tree or null, if property is not applicable.

getProperty

public PartialResponse.Content getProperty(Entry entry)
Description copied from interface: DAVProperty
Builds a property content tree for collection entry.

Specified by:
getProperty in interface DAVProperty
Parameters:
entry - Collection entry
Returns:
Property content tree or null, if property is not applicable.

Xindice API
version 1.2m1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.