com.sapportals.wcm.service.pipeline.producer

Class ProducerFromStream

java.lang.Object
  extended by com.sapportals.wcm.service.pipeline.producer.AbstractProducer
      extended by com.sapportals.wcm.service.pipeline.producer.ProducerFromStream
All Implemented Interfaces:
IProducer

public class ProducerFromStream
extends AbstractProducer

Provides access to a stream.

Copyright 2004 SAP AG


Field Summary
protected  String m_mime
           
protected  InputStream m_stream
           
protected  String m_url
           
 
Constructor Summary
ProducerFromStream(InputStream stream, String url, String mimeType)
           
 
Method Summary
 RequestData getData()
          This method is responsible to provide a Content object which contains the XML DOM and/or a stream to non XML data;
 Date getLastModified()
          There is no modifaction date
 String getPath()
          Returns the path where the resource is found, or an empty string if no path can be applied to the resource.
 
Methods inherited from class com.sapportals.wcm.service.pipeline.producer.AbstractProducer
createDOM, createEmptyDom, createRequestData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_stream

protected InputStream m_stream

m_mime

protected String m_mime

m_url

protected String m_url
Constructor Detail

ProducerFromStream

public ProducerFromStream(InputStream stream,
                          String url,
                          String mimeType)
                   throws com.sapportals.wcm.WcmException
Throws:
com.sapportals.wcm.WcmException
Method Detail

getData

public RequestData getData()
                    throws com.sapportals.wcm.WcmException
Description copied from interface: IProducer
This method is responsible to provide a Content object which contains the XML DOM and/or a stream to non XML data;

Returns:
content object
Throws:
com.sapportals.wcm.WcmException - Exception raised in failure situation

getPath

public String getPath()
Description copied from interface: IProducer
Returns the path where the resource is found, or an empty string if no path can be applied to the resource.

Returns:
resource path or empty string

getLastModified

public Date getLastModified()
There is no modifaction date

Returns:
lastModified
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 2011 SAP AG Complete Copyright Notice