|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gridsystems.innergrid.api.AbstractImplBase
public abstract class AbstractImplBase
Base implementation for SOAP connectors.
Field Summary | |
---|---|
protected java.lang.String |
apiName
The name of the remote API. |
static org.apache.axis.EngineConfiguration |
CONFIG
Singleton engine configuration. |
protected Connection |
conn
The connection to use. |
protected java.net.URL |
currentUrl
The current URL assigned to the stub. |
static org.apache.axis.client.AxisClient |
ENGINE
Singleton client engine. |
protected org.apache.axis.client.Stub |
stub
The wrapped stub. |
Constructor Summary | |
---|---|
AbstractImplBase(Connection c,
java.lang.String apiName)
Creates a new instance associated to the specified connection, and with the given name. |
Method Summary | |
---|---|
protected void |
axisCheckAttachments(java.lang.Object[] params)
Iterates over an array of attachment parameters and checks that, if they are associated to a File instance, the file really exists. |
protected void |
axisConfigStub(org.apache.axis.client.Stub stub)
Configures the stub. |
protected abstract org.apache.axis.client.Stub |
axisCreateStub(java.net.URL url)
Create a stub instance of the appropriate class for the specific subclass implementation. |
protected org.apache.axis.client.Stub |
axisGetStub()
Gets the stub instance to use in remote calls. |
protected void |
axisInitStub(org.apache.axis.client.Stub stub)
Initializes the stub. |
protected KernelException |
processException(java.lang.Exception e)
Processes incoming exceptions and converts them to the correct KernelException instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.axis.EngineConfiguration CONFIG
public static final org.apache.axis.client.AxisClient ENGINE
protected Connection conn
protected java.lang.String apiName
protected org.apache.axis.client.Stub stub
protected java.net.URL currentUrl
Constructor Detail |
---|
public AbstractImplBase(Connection c, java.lang.String apiName) throws KernelException
c
- The connection to useapiName
- The API name to set
KernelException
- CLT011
If the connection is null
KernelException
- CLT014
If the API name is null or emptyMethod Detail |
---|
protected abstract org.apache.axis.client.Stub axisCreateStub(java.net.URL url) throws org.apache.axis.AxisFault
url
- The target service url
org.apache.axis.AxisFault
- If an error occurs creating the stubprotected org.apache.axis.client.Stub axisGetStub() throws KernelException
KernelException
- If an error occurs creating the stubprotected void axisInitStub(org.apache.axis.client.Stub stub)
The default initialization activates HTTP/1.1 protocol with chunked transfer encoding and non-persistent connections. It also sets the connection timeout to five minutes.
Chunked transfer encoding is needed to allow the server to detect corrupted or incomplete requests, and return the appropriate exception. If transfer encoding is not set to this value, the server will not be able to detect this condition, and the processor thread will hang until the client response read times out.
stub
- The stub to initialiseprotected void axisConfigStub(org.apache.axis.client.Stub stub)
stub
- The stub to configureprotected void axisCheckAttachments(java.lang.Object[] params) throws KernelException
params
- The list of parameters of attachment type
KernelException
- CLT064 Attachment associated to a non-existent fileprotected KernelException processException(java.lang.Exception e)
e
- The exception to process
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |