|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.9.0) E52932-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.adfinternal.model.adapter.webservice.provider.soap.SOAPProvider
public class SOAPProvider
Concrete Data control Provider implementation for the SOAP binding.
The SOAPProvider allows the Data Control to invoke Webservices defined for SOAP
bindings. The provider abstracts out the invocation protocol details at the Data Control level.
The SOAPProvider is intialized from the metadata configuration. The Provider intializes all the necessary classes to convert the operaton invocation requests to SOAP payload and return the response payload as an iterator of maps. For the Data control, the underlying classes used by the provider are not visible, neither is the data control aware of the existance of these instances. All operation invocations by the data control happen via the provider.
The provider is also repsonsible for processing the SOAP
messages for security. The Data control registers the security implmentation via a standard interface DCSecurity
. The SOAPProvider uses the registered implementation to enable SOAP
message level security.
SOAPOperation
, DCSecurity
Field Summary |
---|
Fields inherited from interface oracle.adfinternal.model.adapter.webservice.provider.WSProvider |
---|
PROVIDER_CONNECTION, PROVIDER_DCDEF, PROVIDER_OPERATIONS, PROVIDER_SEC_MODEL, PROVIDER_SERVICE |
Constructor Summary | |
---|---|
SOAPProvider() Create the instance of this SOAPProvider |
Method Summary | |
---|---|
java.lang.Object |
execute(java.lang.String operationName, java.util.Map params) Invoke the service operation Create the request payload against the endpoint URL. |
javax.xml.soap.SOAPMessage |
getRequest() Get the SOAP request message for the previous webservice call invoked. |
javax.xml.soap.SOAPMessage |
getResponse() Get the SOAP response message for the previous webservice call invoked. |
protected void |
handleFault(javax.xml.soap.SOAPFault fault) Handle the SOAP fault if the repsonse generated one. |
protected java.util.Map<java.lang.String,java.util.List> |
handleHttpHeaders(java.util.Map httpHeaders) The method creates an instance of Map<String,List> by merging the contents of httpHeaders passed by method. |
protected void |
handleRequest(javax.xml.soap.SOAPMessage mRequest) Override this method for custom manipulation of the SOAPRequest. |
protected void |
handleResponse(javax.xml.soap.SOAPMessage mResponse) Override this method for custom processing the SOAPResponse obtained. |
void |
init(java.util.Map environment) Initialize the Provider with the DC environment. |
void |
setSecurityModel(SecurityModel security) Set the Security Model for this provider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SOAPProvider()
Method Detail |
---|
public void init(java.util.Map environment)
init
in interface WSProvider
environment
- The Parameters needed by this provider to make a successful invocation of the DC operation.public java.lang.Object execute(java.lang.String operationName, java.util.Map params) throws AdapterException
execute
in interface WSProvider
operationName
- The name of the operation to be invoked.params
- The parameters for this operation invocation.{@link
- AdapterException} if the invocation fails.AdapterException
public javax.xml.soap.SOAPMessage getRequest()
public javax.xml.soap.SOAPMessage getResponse()
public void setSecurityModel(SecurityModel security)
WSProvider
setSecurityModel
in interface WSProvider
security
- The security model for this provider.protected void handleRequest(javax.xml.soap.SOAPMessage mRequest) throws AdapterException
mRequest
- Reference to the SOAPRequestAdapterException
protected void handleResponse(javax.xml.soap.SOAPMessage mResponse) throws AdapterException
mResponse
- Reference to the SOAPResponseAdapterException
protected void handleFault(javax.xml.soap.SOAPFault fault) throws AdapterException
fault
- The SOAP fault generated by the response.AdapterException
protected java.util.Map<java.lang.String,java.util.List> handleHttpHeaders(java.util.Map httpHeaders)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.9.0) E52932-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |