public class GetPriceListRequest extends PriceListRequest
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.Element | headerElement_
headerElement_ contains the request document's Header element.
|
protected org.w3c.dom.Element | priceListElement_
priceListElement_ contains the request document's PriceList element.
|
Constructor and Description |
---|
GetPriceListRequest()
Default constructor to create a new request handler.
|
Modifier and Type | Method and Description |
---|---|
protected org.w3c.dom.Element | createDataAreaElement()
This method builds the DataArea element and adds it as a child of rootElement_.
|
protected org.w3c.dom.Element | createHeaderElement()
This method builds the Header element and adds it as a child of priceListElement_.
|
protected org.w3c.dom.Element | createPriceListElement()
This method builds the PriceList element and adds it as a child of dataAreaElement_.
|
protected org.w3c.dom.Element | createSenderElement()
This method builds the Sender element and adds it as a child of applicationAreaElement_.
|
protected org.w3c.dom.Document | getRequestBod()
This method constructs the request document.
|
protected Session | getResponseData()
This method returns the unmarshalled response data in the form of a com.ibm.commerce.telesales.model.GenericGet object.
|
ServiceContext | getServiceContext()
This method constructs the service context for this service request.
|
protected java.lang.String | getXSDFileName()
This method returns the name of the schema file for the request BOD.
|
protected void | unmarshallDataArea(GenericGet get, org.w3c.dom.Element dataAreaElement)
This method unmarshalls the DataArea element.
|
protected void | unmarshallDocumentId(PriceList priceList, org.w3c.dom.Element documentIdElement)
This method unmarshalls the DocumentId element.
|
protected void | unmarshallHeader(PriceList priceList, org.w3c.dom.Element headerElement)
This method unmarshalls the Header element.
|
protected void | unmarshallListPriceBreak(PriceList priceList, org.w3c.dom.Element listPriceBreakElement)
This method unmarshalls the ListPriceBreak element.
|
protected void | unmarshallPriceList(PriceList priceList, org.w3c.dom.Element priceListElement)
This method unmarshalls the PriceList element.
|
protected void | unmarshallResponseBod(org.w3c.dom.Document bod)
This method unmarshalls the response BOD (business object document).
|
protected void | unmarshallShowPriceList(GenericGet get, org.w3c.dom.Element showPriceListElement)
This method unmarshalls the ShowPriceList element.
|
protected org.w3c.dom.Element priceListElement_
protected org.w3c.dom.Element headerElement_
public GetPriceListRequest()
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> <PriceList> <!-- constructed by createPriceListElement() --> . . </PriceList> </DataArea>
protected org.w3c.dom.Element createHeaderElement()
The following outline shows the structure of the Header element and its construction:
<Header> <CommerceArea> <!-- constructed by createCommerceAreaElement() --> . . </CommerceArea> </Header>
protected org.w3c.dom.Element createPriceListElement()
The following outline shows the structure of the PriceList element and its construction:
<PriceList/>
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>PriceList</oa:Component> <oa:Task>GetPriceList</oa:Task> <oa:ReferenceId>-1680589954192190044</oa:ReferenceId> <!-- value of getServiceRequestContext() --> <oa:Confirmation>2</oa:Confirmation> <oa:AuthorizationId>LOGON_TOKEN_ID_SCAFFOLDING</oa:AuthorizationId> <!-- value of ContextManager.getInstance().getSessionCtx() --> </oa:Sender>
protected org.w3c.dom.Document getRequestBod()
<GetPriceList> <!-- created by the createWCRootElement method --> . . </GetPriceList>
protected Session getResponseData()
protected void unmarshallDataArea(GenericGet get, org.w3c.dom.Element dataAreaElement)
<DataArea> <PriceList> <!-- unmarshalled by unmarshallPriceList() --> . . </PriceList> <PriceList> <!-- unmarshalled by unmarshallPriceList() --> . . </PriceList> </DataArea>
protected void unmarshallDocumentId(PriceList priceList, org.w3c.dom.Element documentIdElement)
<oa:DocumentId> <oa:Id>100</oa:Id> <!-- priceList.setCatalogEntryId() --> </oa:DocumentId>
protected void unmarshallHeader(PriceList priceList, org.w3c.dom.Element headerElement)
<oa:Header> <oa:DocumentId> <!-- unmarshalled by unmarshallDocumentId() --> . . </oa:DocumentId> <oa:ListPriceBreak> <!-- unmarshalled by unmarshallListPriceBreak() --> . . </oa:ListPriceBreak> <<oa:UserArea/> </oa:Header>
protected void unmarshallListPriceBreak(PriceList priceList, org.w3c.dom.Element listPriceBreakElement)
<oa:ListPriceBreak> <oa:PriceBreakAmount currency="USD">100</oa:PriceBreakAmount> <!-- priceList.setFloorPrice() --> </oa:ListPriceBreak>
protected void unmarshallPriceList(PriceList priceList, org.w3c.dom.Element priceListElement)
<PriceList> <oa:Header> <!-- unmarshalled by unmarshallHeader() --> . . </oa:Header> <wc:ListPriceAmount currency="USD">100</wc:ListPriceAmount> <!-- priceList.setListPrice() --> <wc:UserData/> <!-- unmarshalled by unmarshallUserData() --> </PriceList>
protected void unmarshallResponseBod(org.w3c.dom.Document bod)
protected void unmarshallShowPriceList(GenericGet get, org.w3c.dom.Element showPriceListElement)
<ShowPriceList> <oa:ApplicationArea> <!-- unmarshalled by unmarshallApplicationArea() --> . . </oa:ApplicationArea> <DataArea> <!-- unmarshalled by unmarshallDataArea() --> . . </DataArea> </ShowPriceList>
protected java.lang.String getXSDFileName()
public ServiceContext getServiceContext()