com.sapportals.wcm.util.urlcontentaccess

Interface IURLContent

All Superinterfaces:
IContent
All Known Implementing Classes:
URLContent

public interface IURLContent
extends IContent

Contains the data and header information for a resource


Method Summary
 long getContentLength()
          Get the size of the content data.
 String getContentType()
          Get the content type from the header fields collection.
 String getFilename()
          Returns the filename
 HeaderFields getHeader()
          Returns a collection of the header fields for the content.
 InputStream getInputStream()
          Gets the InputStream for the content.
 String getURL()
          Returns the URL
 void setHeader(HeaderFields header)
          Set header fields.
 void writeTo(OutputStream out)
          Writes the content to the output stream.
 
Methods inherited from interface com.sapportals.wcm.util.content.IContent
close, getEncoding
 

Method Detail

writeTo

void writeTo(OutputStream out)
             throws URLContentAccessException
Writes the content to the output stream.

Parameters:
out - The stream to write to
Throws:
URLContentAccessException

getInputStream

InputStream getInputStream()
Gets the InputStream for the content.

Specified by:
getInputStream in interface IContent
Returns:
The stream to read the data from.

getHeader

HeaderFields getHeader()
Returns a collection of the header fields for the content.

Returns:
The header collection.

setHeader

void setHeader(HeaderFields header)
Set header fields.

Parameters:
header - The header fields.

getContentType

String getContentType()
Get the content type from the header fields collection.

Specified by:
getContentType in interface IContent
Returns:
The mime type

getContentLength

long getContentLength()
Get the size of the content data.

Specified by:
getContentLength in interface IContent
Returns:
Size of the content in bytes.

getURL

String getURL()
Returns the URL

Returns:
uRL

getFilename

String getFilename()
Returns the filename

Returns:
filename
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