|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.util.urlcontentaccess.URLContent
public class URLContent
Used to hold the data and header information for one component returned by or to be sent to the content server.
| Constructor Summary | |
|---|---|
URLContent(URL urlObject,
HeaderFields header,
InputStream in,
boolean cached)
Constructs a new content object |
|
| Method Summary | |
|---|---|
void |
close()
Stop using this content object. |
long |
getContentLength()
Get the size of the content data. |
String |
getContentType()
Get the content type from the header fields collection. |
String |
getEncoding()
Returns the name of the character encoding of textual content |
protected long |
getFetchTime()
|
String |
getFilename()
Returns the filename |
HeaderFields |
getHeader()
Returns a collection of the header fields for the content. |
InputStream |
getInputStream()
Returns the input stream to read the content. |
String |
getURL()
Returns the URL |
boolean |
isFile()
|
boolean |
isHttp()
|
void |
setHeader(HeaderFields header)
Set header fields. |
void |
writeTo(OutputStream out)
Writes the content to the specified output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLContent(URL urlObject,
HeaderFields header,
InputStream in,
boolean cached)
throws IOException
urlObject - Holds the URL that points to the content sourceheader - HTTP response or multi-part mime headersin - An InputStream to read the content fromcached - TBD: Description of the incoming method parameter
IOException| Method Detail |
|---|
public InputStream getInputStream()
getInputStream in interface IContentgetInputStream in interface IURLContent
public void writeTo(OutputStream out)
throws URLContentAccessException
writeTo in interface IURLContentout - An output stream reference
URLContentAccessException - Exception raised in failure situationpublic HeaderFields getHeader()
IURLContent
getHeader in interface IURLContentpublic void setHeader(HeaderFields header)
IURLContent
setHeader in interface IURLContentheader - The header fields.public String getContentType()
IURLContent
getContentType in interface IContentgetContentType in interface IURLContentpublic long getContentLength()
IURLContent
getContentLength in interface IContentgetContentLength in interface IURLContentpublic String getURL()
IURLContent
getURL in interface IURLContentpublic String getFilename()
IURLContent
getFilename in interface IURLContent
public String getEncoding()
throws ContentException
IContent
getEncoding in interface IContentnull )
ContentException - Exception raised in failure situationpublic boolean isFile()
public boolean isHttp()
public void close()
IContent
close in interface IContentprotected long getFetchTime()
| 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 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||