public class GetCountryRequest extends CountryRequest
The following TelesalesProperties properties must be set before invoking GetCountryRequest:
Constructor and Description |
---|
GetCountryRequest()
Creates a new request handler.
|
Modifier and Type | Method and Description |
---|---|
protected org.w3c.dom.Element | createDataAreaElement()
Builds the DataArea element and adds it as a child of rootElement_.
|
protected org.w3c.dom.Element | createSenderElement()
Builds the Sender element and adds it as a child of applicationAreaElement_.
|
protected org.w3c.dom.Document | getRequestBod()
Constructs the request document.
|
protected Session | getResponseData()
Returns the unmarshalled response data in the form of a com.ibm.commerce.telesales.model.GenericGet object.
|
ServiceContext | getServiceContext()
Returns the ServiceContext object specific to this request.
|
protected java.lang.String | getXSDFileName()
Returns the name of the schema file for the request BOD.
|
protected void | unmarshallDataArea(org.w3c.dom.Element dataAreaElement)
Unmarshalls the DataArea element.
|
protected void | unmarshallResponseBod(org.w3c.dom.Document responseBOD)
Unmarshalls the response BOD (business object document).
|
protected void | unmarshallShowCountry(GenericGet get, org.w3c.dom.Element showCountryElement)
Unmarshalls the ShowCountry element.
|
protected Session getResponseData()
public ServiceContext getServiceContext()
protected java.lang.String getXSDFileName()
protected org.w3c.dom.Document getRequestBod()
<GetCountry> <!-- created by the createWCRootElement method --> . . </GetCountry>
protected org.w3c.dom.Element createSenderElement()
The following sample Sender element shows how the element is constructed:
<oa:Sender> <oa:LogicalId>TSCLIENT</oa:LogicalId> <oa:Component>Member</oa:Component> <oa:Task>GetCountry</oa:Task> <oa:ReferenceId>-1680589954192190044</oa:ReferenceId> <!-- value of getActionCtx --> <oa:Confirmation>2</oa:Confirmation> <oa:AuthorizationId>LOGON_TOKEN_ID_SCAFFOLDING</oa:AuthorizationId> <!-- value of ContextManager.getInstance().getSessionCtx() --> </oa:Sender>
protected org.w3c.dom.Element createDataAreaElement()
The following outline shows the structure of the DataArea element and its construction:
<DataArea> <Get> <!-- constructed by createGetElement() --> . . </Get> </DataArea>
protected void unmarshallResponseBod(org.w3c.dom.Document responseBOD)
protected void unmarshallShowCountry(GenericGet get, org.w3c.dom.Element showCountryElement)
<ShowCountry> <oa:ApplicationArea> <!-- unmarshalled by unmarshallApplicationArea() --> . . </oa:ApplicationArea> <DataArea> <!-- unmarshalled by unmarshallDataArea() --> . . </DataArea> </ShowCountry>
protected void unmarshallDataArea(org.w3c.dom.Element dataAreaElement)
<DataArea> <Show/> <!-- unmarshalled by unmarshallShow() --> <Country> <!-- unmarshalled by unmarshallCountry() --> . . </Country> <Country> <!-- unmarshalled by unmarshallCountry() --> . . </Country> </DataArea>