com.sapportals.wcm.repository

Class ContentMetadata

java.lang.Object
  extended by com.sapportals.wcm.repository.ContentMetadata
All Implemented Interfaces:
IContentMetadata

public class ContentMetadata
extends Object
implements IContentMetadata

TBD: Description of the class.


Constructor Summary
ContentMetadata(long length, String type, String encoding, String entityTag, Date expiryDate, String language, Date lastModified)
           
 
Method Summary
 String getContentEncoding()
          Returns the content encoding of resource content or null if not known.
 String getContentLanguage()
          Returns the content language (see RFC2616 , section 14.12) or null when not known.
 long getContentLength()
          Returns the length of resource content in bytes or -1 if not known.
 String getContentType()
          Returns the content type of resource content as media sub type or null if not known.
 String getETag()
          Returns the entity-tag for the content (see RFC2616 , section 14.19).
 Date getExpires()
          Returns the expires date of the content (see RFC2616 , section 14.21) or null when not specified.
 Date getLastModified()
          Returns the last modification date of the content (see RFC2616 , section 14.29) or null when not known.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentMetadata

public ContentMetadata(long length,
                       String type,
                       String encoding,
                       String entityTag,
                       Date expiryDate,
                       String language,
                       Date lastModified)
Method Detail

getContentLength

public long getContentLength()
Description copied from interface: IContentMetadata
Returns the length of resource content in bytes or -1 if not known.

Specified by:
getContentLength in interface IContentMetadata
Returns:
length of resource content in bytes

getContentType

public String getContentType()
Description copied from interface: IContentMetadata
Returns the content type of resource content as media sub type or null if not known.

Specified by:
getContentType in interface IContentMetadata
Returns:
content type of resource content as media sub type (may be null)

getContentEncoding

public String getContentEncoding()
Description copied from interface: IContentMetadata
Returns the content encoding of resource content or null if not known.

Specified by:
getContentEncoding in interface IContentMetadata
Returns:
content encoding of resource content (may be null)

getContentLanguage

public String getContentLanguage()
Description copied from interface: IContentMetadata
Returns the content language (see RFC2616 , section 14.12) or null when not known.

Specified by:
getContentLanguage in interface IContentMetadata
Returns:
content language (may be null)

getETag

public String getETag()
Description copied from interface: IContentMetadata
Returns the entity-tag for the content (see RFC2616 , section 14.19). Note that the entity tag may be a weak entity tag (indicated by a leading "W/"). Only strong entity tags can be used to assert octet-by-octet entity body identity, though.

Specified by:
getETag in interface IContentMetadata
Returns:
entity-tag of the content (may be null)

getExpires

public Date getExpires()
Description copied from interface: IContentMetadata
Returns the expires date of the content (see RFC2616 , section 14.21) or null when not specified.

Specified by:
getExpires in interface IContentMetadata
Returns:
expires date of the content (may be null)

getLastModified

public Date getLastModified()
Description copied from interface: IContentMetadata
Returns the last modification date of the content (see RFC2616 , section 14.29) or null when not known.

Specified by:
getLastModified in interface IContentMetadata
Returns:
last modification date of the content (may be null)
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice