com.sap.netweaver.bc.rf.common.content

Interface IContentMetadata

All Known Implementing Classes:
ContentMetadata, ContentMetadata

public interface IContentMetadata

Interface describing the content metadata of the content a resource may provide.


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.
 

Method Detail

getContentLength

long getContentLength()
Returns the length of resource content in bytes or -1 if not known.

Returns:
length of resource content in bytes

getContentType

String getContentType()
Returns the content type of resource content as media sub type or null if not known.

Returns:
content type of resource content as media sub type (may be null)

getContentEncoding

String getContentEncoding()
Returns the content encoding of resource content or null if not known.

Returns:
content encoding of resource content (may be null)

getContentLanguage

String getContentLanguage()
Returns the content language (see RFC2616 , section 14.12) or null when not known.

Returns:
content language (may be null)

getETag

String getETag()
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.

Returns:
entity-tag of the content (may be null)

getExpires

Date getExpires()
Returns the expires date of the content (see RFC2616 , section 14.21) or null when not specified.

Returns:
expires date of the content (may be null)

getLastModified

Date getLastModified()
Returns the last modification date of the content (see RFC2616 , section 14.29) or null when not known.

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-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM


Copyright 2012 SAP AG Complete Copyright Notice