@Deprecated
public abstract class AbstractRPCService
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ServicesUtil |
util
Deprecated.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractRPCService()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.axiom.om.OMElement |
attachFile(javax.activation.DataSource dataSource,
java.lang.String elementName)
Deprecated.
Attach a file to an OMElement so it can be sent with webservices.
|
protected java.lang.String |
getRemoteId()
Deprecated.
Gets the remote id to identify connection with.
|
protected SessionControl |
getSessionControl(java.lang.String ID)
Deprecated.
Gets the SessionControl for a given session ID.
|
protected ServicesUtil util
protected SessionControl getSessionControl(java.lang.String ID)
ID
- Id for which SessionControl should be returned.protected java.lang.String getRemoteId()
protected org.apache.axiom.om.OMElement attachFile(javax.activation.DataSource dataSource, java.lang.String elementName)
OMElement response = .....
OMElement fileElement = response.getFirstElement();
OMElement dataElement = fileElement.getFirstElement();
OMText node = (OMText) dataElement.getFirstOMChild();
DataHandler dataHandler = (DataHandler) node.getDataHandler();
InputStream in = dataHandler.getInputStream();
dataSource
- A DataSource to be attached to an OMElement.elementName
- The name to call the element by.