@Deprecated public abstract class AbstractRPCService extends 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(DataSource dataSource,
String elementName)
Deprecated.
Attach a file to an OMElement so it can be sent with webservices.
|
protected String |
getRemoteId()
Deprecated.
Gets the remote id to identify connection with.
|
protected SessionControl |
getSessionControl(String ID)
Deprecated.
Gets the SessionControl for a given session ID.
|
protected ServicesUtil util
protected SessionControl getSessionControl(String ID)
ID
- Id for which SessionControl should be returned.protected String getRemoteId()
protected org.apache.axiom.om.OMElement attachFile(DataSource dataSource, 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.