|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.quickstart.userInterface.SOAPDocumentContentHandler
Uses SOAP source to retrieve a document.
XML Configuration Template:
<ContentHandler
contentType="[Quickstart content type]"
class="com.raritantechnologies.quickstart.userInterface.SOAPDocumentContentHandler" >
<SOAPMethodSequence >
<method name="[a method name - links to SOAPMethod tag]" >
<!-- selection parameters for this method - input parameters must match all -->
<parameter name="[ input parameter to select this method ]" value="[ parameter value ]" />
</method>
<method name="[another method - links to SOAPMethod tag]" />
</SOAPMethodSequence>
<SOAPMethod methodName="[ from WSDL message tag, name attribute ]"
namespace="ns1"
SOAPAction="[ from WSDL binding/operation/soap:operation tag, soapAction attribute ]"
requestXMLType="[ same as WSDL request message/part tag, type attribute]"
responseXMLType="[ from WSDL response message/part tag, type attribute]"
namespaceHost="http://soap.amazon.com" >
<!-- One or more parameter elements -->
<parameter name="[ name or parameter in SOAP request ]"
type="[ xsd type: e.g. xsd:string or xsd:int ]"
field="[ field in request ]"
value="[ fixed value ]"
computeFrom="[ formula used by IntegerCalculator e.g.: (START_REC / 10) + 1) ]"
nil="true|false send empty field ]"
inputFrom="[ value previously extracted by a ResponseProcess ]" >
<StringFilter class="[ class of com.raritantechnologies.utils.filter.IStringFilter ]" >
</StringFilter>
</parameter>
<!-- etc. . . -->
<!-- Complex SOAP parameters: contain nested SOAP structures -->
<!-- handles intermediate result parameters: saves them to a context so that subsequent methods can use them -->
<ResponseProcess>
<!-- One or more ResponseParameter elements -->
<ResponseParameter path="[ path in SOAP Response with data ]"
outputTo="[ name of temporary variable in Context ]" />
<!-- etc. . . -->
</ResponseProcess>
</SOAPMethod>
</ContentHandler>
| Constructor Summary | |
SOAPDocumentContentHandler()
|
|
| Method Summary | |
java.lang.String |
getErrorPage(HttpServletRequest pReq)
|
java.lang.String |
getHandlerName()
Returns the name of document handler |
java.lang.String |
getLastContentType()
|
java.lang.String |
getLastDocumentName()
|
java.util.Map |
getLastDocumentParamMap()
Returns Map of param=value |
java.lang.String |
getProperty(java.lang.String propName)
|
java.util.Iterator |
getPropertyNames()
|
java.util.List |
getRequestParameters()
returns the list of parameters needed in the HTTP request. |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
void |
sendDocumentContent(ILoginInfo userInfo,
HttpServletRequest pReq,
HttpServletResponse pRes)
Sends the document content to the HttpServletResponse using parameters in the HttpServletRequest. |
byte[] |
sendDocumentContent(java.util.Map handlerInfo)
Sends the document content to the whatever class calls it using parameters defined in a Map. |
void |
setProperty(java.lang.String propName,
java.lang.String propVal)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SOAPDocumentContentHandler()
| Method Detail |
public void sendDocumentContent(ILoginInfo userInfo,
HttpServletRequest pReq,
HttpServletResponse pRes)
throws ServletException
IDocumentContentHandler
sendDocumentContent in interface IDocumentContentHandleruserInfo - User information for this session user. May be used to restrict access to content.pReq - The HttpServletRequest for the requested content.pRes - The HttpServletResponse. The content handler will obtain a ServletOutputStream from
this object and write the content to this stream.
ServletExceptionpublic void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IDocumentContentHandlerpublic java.lang.String getErrorPage(HttpServletRequest pReq)
getErrorPage in interface IDocumentContentHandlerpublic java.lang.String getLastDocumentName()
getLastDocumentName in interface IDocumentContentHandlerpublic java.lang.String getHandlerName()
getHandlerName in interface IDocumentContentHandlerpublic java.util.Map getLastDocumentParamMap()
getLastDocumentParamMap in interface IDocumentContentHandlerpublic java.lang.String getLastContentType()
getLastContentType in interface IDocumentContentHandler
public void setProperty(java.lang.String propName,
java.lang.String propVal)
setProperty in interface ISOAPContextpublic java.lang.String getProperty(java.lang.String propName)
getProperty in interface ISOAPContextpublic java.util.Iterator getPropertyNames()
getPropertyNames in interface ISOAPContextpublic java.util.List getRequestParameters()
IDocumentContentHandler
getRequestParameters in interface IDocumentContentHandlerpublic byte[] sendDocumentContent(java.util.Map handlerInfo)
IDocumentContentHandler
sendDocumentContent in interface IDocumentContentHandlerhandlerInfo - Information needed by the implementing class to retrieve and send content.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||