Package org.apache.axis2.dataretrieval
Class BaseAxisDataLocator
- java.lang.Object
-
- org.apache.axis2.dataretrieval.BaseAxisDataLocator
-
- Direct Known Subclasses:
PolicyDataLocator
,SchemaDataLocator
,WSDLDataLocator
public abstract class BaseAxisDataLocator extends Object
BaseAxisDataLocator implements common code and serves as a base class for the supported default Axis2 dialect data locators.
-
-
Field Summary
Fields Modifier and Type Field Description protected ServiceData[]
dataList
-
Constructor Summary
Constructors Constructor Description BaseAxisDataLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Data[]
getData(DataRetrievalRequest request, MessageContext msgContext)
The default Axis2 Data locator getData API Checks data information configured in ServiceData.xml for the supported output forms: inline, url, EndpointReference.protected OutputForm
getOutputForm()
protected Data[]
outputInlineForm(MessageContext msgContext, ServiceData[] serviceData)
protected Data[]
outputLocationForm(ServiceData[] serviceData)
protected Data[]
outputReferenceForm(MessageContext msgContext, ServiceData[] serviceData)
protected void
setServiceData(ServiceData[] inServiceData)
-
-
-
Field Detail
-
dataList
protected ServiceData[] dataList
-
-
Method Detail
-
getData
public Data[] getData(DataRetrievalRequest request, MessageContext msgContext) throws DataRetrievalException
The default Axis2 Data locator getData API Checks data information configured in ServiceData.xml for the supported output forms: inline, url, EndpointReference. Note: Subclass that has its implementation of outInlineForm, outputLocationForm, and outputReferenceForm logic must implement the getData API.- Throws:
DataRetrievalException
-
outputInlineForm
protected Data[] outputInlineForm(MessageContext msgContext, ServiceData[] serviceData) throws DataRetrievalException
- Throws:
DataRetrievalException
-
outputLocationForm
protected Data[] outputLocationForm(ServiceData[] serviceData) throws DataRetrievalException
- Throws:
DataRetrievalException
-
outputReferenceForm
protected Data[] outputReferenceForm(MessageContext msgContext, ServiceData[] serviceData) throws DataRetrievalException
- Throws:
DataRetrievalException
-
setServiceData
protected void setServiceData(ServiceData[] inServiceData)
-
getOutputForm
protected OutputForm getOutputForm()
-
-