com.sapportals.wcm.service.pipeline.producer

Class ProducerFromString

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

public class ProducerFromString
extends AbstractProducer

Provides access to a XML-Strings or XML-DOM (Document ). If a XML-Strings is used, a DOM must be generated from the string.

Copyright 2004 SAP AG


Constructor Summary
ProducerFromString(Document doc)
           
ProducerFromString(String xmlString)
           
 
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
 

Constructor Detail

ProducerFromString

public ProducerFromString(Document doc)
                   throws com.sapportals.wcm.WcmException
Throws:
com.sapportals.wcm.WcmException

ProducerFromString

public ProducerFromString(String xmlString)
                   throws com.sapportals.wcm.WcmException
Throws:
com.sapportals.wcm.WcmException
Method Detail

getData

public RequestData getData()
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

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