|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.repository.Content
public class Content
Access to the content data of a resource.
Copyright (c) SAP AG 2001-2002
| Constructor Summary | |
|---|---|
Content(InputStream inputStream,
String mediaType,
long contentLength)
Constructs Content object, for use when encoding is not known separately but may be present in media type string. |
|
Content(InputStream inputStream,
String mediaType,
long contentLength,
String encoding)
Constructs Content object, for use when media subtype and encoding are available as individual values. |
|
Content(InputStream inputStream,
String mediaType,
long contentLength,
String encoding,
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 |
String |
getContentType()
Returns the content type of the resource data |
String |
getEncoding()
Returns the name of the character encoding of textual content |
String |
getEntityTag()
Returns the the entity-tag for the content (see RFC2616, section 3.11) and RFC2616, section 14.19). |
Date |
getExpiryDate()
|
InputStream |
getInputStream()
Returns the input stream of the resource content. |
String |
getLanguage()
|
Date |
getLastModified()
|
void |
setEntityTag(String entityTag)
|
void |
setLastModified(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(InputStream inputStream,
String mediaType,
long contentLength,
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(InputStream inputStream,
String mediaType,
long contentLength,
String encoding,
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(InputStream inputStream,
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 InputStream getInputStream()
throws ContentException
IContent
getInputStream in interface IContentContentException
public long getContentLength()
throws ContentException
IContent
getContentLength in interface IContentContentException
public String getContentType()
throws ContentException
IContent
getContentType in interface IContentContentException
public String getEncoding()
throws ContentException
IContent
getEncoding in interface IContentnull )
ContentException - Exception raised in failure situation
public String getEntityTag()
throws ResourceException
IEntityMetadataThe Format MUST be either:
getEntityTag in interface IEntityMetadatanull when not known
ResourceException
public void setEntityTag(String entityTag)
throws ResourceException
setEntityTag in interface IMutableEntityMetadataentityTag - entity-tag (see RFC2616 , section 14.19).
ResourceException - Exception raised in failure situation
public Date getExpiryDate()
throws ResourceException
getExpiryDate in interface IEntityMetadatanull when not specified
ResourceException
public String getLanguage()
throws ResourceException
getLanguage in interface IEntityMetadatanull when not known
ResourceException
public Date getLastModified()
throws ResourceException
getLastModified in interface IEntityMetadatanull when not known
ResourceException
public void setLastModified(Date lastModified)
throws ResourceException
setLastModified in interface IMutableEntityMetadatalastModified - last modified timestamp (see RFC2616 , section 14.29)
ResourceException - Exception raised in failure situationpublic boolean wasUpdated()
wasUpdated in interface IMutableEntityMetadatapublic void close()
IContent
close in interface IContent| Access Rights |
|---|
| 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
|
|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||