|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.wcm.repository.Content
Access to the content data of a resource.
Copyright (c) SAP AG 2001-2002
| Constructor Summary | |
Content(java.io.InputStream inputStream,
java.lang.String mediaType,
long contentLength)
Constructs Content object, for use when encoding is not known separately but may be present in media type string. |
|
Content(java.io.InputStream inputStream,
java.lang.String mediaType,
long contentLength,
java.lang.String encoding)
Constructs Content object, for use when media subtype and encoding are available as individual values. |
|
Content(java.io.InputStream inputStream,
java.lang.String mediaType,
long contentLength,
java.lang.String encoding,
java.lang.String language)
Constructs Content object, for use when media subtype and encoding are available as individual values. |
|
| Method Summary | |
void |
close()
Stop using this content object. |
long |
getContentLength()
Returns the length of the resource content |
java.lang.String |
getContentType()
Returns the content type of the resource data |
java.lang.String |
getEncoding()
Returns the name of the character encoding of textual content |
java.lang.String |
getEntityTag()
Returns the the entity-tag for the content (see RFC2616, section 3.11) and RFC2616, section 14.19). |
java.util.Date |
getExpiryDate()
|
java.io.InputStream |
getInputStream()
Returns the input stream of the resource content. |
java.lang.String |
getLanguage()
|
java.util.Date |
getLastModified()
|
void |
setEntityTag(java.lang.String entityTag)
|
void |
setLastModified(java.util.Date lastModified)
|
boolean |
wasUpdated()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Content(java.io.InputStream inputStream,
java.lang.String mediaType,
long contentLength,
java.lang.String encoding)
inputStream - input streammediaType - media type of content (trailing parameters are ignored)contentLength - length of content (use -1 when unknown)encoding - character encoding (use null when unknown)
public Content(java.io.InputStream inputStream,
java.lang.String mediaType,
long contentLength,
java.lang.String encoding,
java.lang.String language)
inputStream - input streammediaType - media type of content (trailing parameters are ignored)contentLength - length of content (use -1 when unknown)encoding - character encoding (use null when unknown)language - content language (use null when unknown)
public Content(java.io.InputStream inputStream,
java.lang.String mediaType,
long contentLength)
inputStream - input streammediaType - media type of content (trailing parameters except encoding
information is ignored)contentLength - length of content (use -1 when unknown)| Method Detail |
public java.io.InputStream getInputStream()
throws ContentException
IContentgetInputStream in interface IContentcom.sapportals.wcm.util.content.IContentContentException -
public long getContentLength()
throws ContentException
IContentgetContentLength in interface IContentcom.sapportals.wcm.util.content.IContentContentException -
public java.lang.String getContentType()
throws ContentException
IContentgetContentType in interface IContentcom.sapportals.wcm.util.content.IContentContentException -
public java.lang.String getEncoding()
throws ContentException
IContentgetEncoding in interface IContentcom.sapportals.wcm.util.content.IContentnull )ContentException - Exception raised in failure situation
public java.lang.String getEntityTag()
throws ResourceException
IEntityMetadataThe Format MUST be either:
getEntityTag in interface IEntityMetadatacom.sapportals.wcm.repository.IEntityMetadatanull when not known
public void setEntityTag(java.lang.String entityTag)
throws ResourceException
setEntityTag in interface IMutableEntityMetadatacom.sapportals.wcm.repository.IMutableEntityMetadataentityTag - entity-tag (see RFC2616 , section 14.19).ResourceException - Exception raised in failure situation
public java.util.Date getExpiryDate()
throws ResourceException
getExpiryDate in interface IEntityMetadatacom.sapportals.wcm.repository.IEntityMetadatanull when not specified
public java.lang.String getLanguage()
throws ResourceException
getLanguage in interface IEntityMetadatacom.sapportals.wcm.repository.IEntityMetadatanull when not known
public java.util.Date getLastModified()
throws ResourceException
getLastModified in interface IEntityMetadatacom.sapportals.wcm.repository.IEntityMetadatanull when not known
public void setLastModified(java.util.Date lastModified)
throws ResourceException
setLastModified in interface IMutableEntityMetadatacom.sapportals.wcm.repository.IMutableEntityMetadatalastModified - last modified timestamp (see RFC2616 , section 14.29)ResourceException - Exception raised in failure situationpublic boolean wasUpdated()
wasUpdated in interface IMutableEntityMetadatacom.sapportals.wcm.repository.IMutableEntityMetadatapublic void close()
IContentclose in interface IContent
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||