|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--uk.org.ogsadai.client.toolkit.activity.RequestComponent
|
+--uk.org.ogsadai.client.toolkit.activity.Activity
|
+--uk.org.ogsadai.client.toolkit.activity.delivery.DeliverFromDT
This activity retrieves data from a stream exposed by a data service resource exposed by a service.
It has no inputs and one output - the data retrieved.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
protected GSIAuthorizationType |
mAuthorizationType
GSI authorization type to use when contacting remove service |
protected DataTransportMode |
mMode
Data transfer mode. |
protected int |
mNumberOfBlocks
Number of data blocks to transfer in each go |
protected GSIProtectionLevel |
mProtectionLevel
GSI Protection level to use when contacting remove service |
protected ResourceID |
mResourceID
Resource exposed by source service |
protected ServiceType |
mServiceType
Service type. |
protected SessionStreamID |
mStreamID
Input stream of a session exposed by resource. |
protected java.net.URL |
mURL
Source service URL. |
| Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
| Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
| Constructor Summary | |
DeliverFromDT()
Constructs a request to retrieve data from a service with default data transfer mode as full. |
|
DeliverFromDT(java.net.URL url,
ResourceID resourceID,
SessionStreamID streamID,
DataTransportMode mode)
Constructs a request to write data to a service with default data transfer mode as full. |
|
| Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
ActivityOutput |
getOutput()
Gets the activity's only output. |
void |
setDataTransportInput(DataTransport service)
Sets up the input service, resource, session and stream to be that held in the given data transport service proxy. |
void |
setDataTransportMode(DataTransportMode mode)
Sets the data transfer mode. |
void |
setDataTransportResourceID(ResourceID id)
Sets the ID of the destination resource. |
void |
setDataTransportStreamID(SessionStreamID streamID)
Sets the ID of the destination session and stream. |
void |
setDataTransportURL(java.net.URL url)
Sets the URL of the destination service. |
void |
setGSISecureConversation(GSIProtectionLevel protectionLevel,
GSIAuthorizationType authorizationType)
Sets that GSI Secure Conversation message level security should be used when communicating with the remote service. |
void |
setNumberOfBlocks(int numberOfBlocks)
Set the number of blocks to transfer at a time. |
void |
setServiceType(ServiceType serviceType)
Sets the type (OGSA-DAI WSI or OGSA-DAI WSRF) of the destination service if known. |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
addInput, addOutput, addOutputs, getDataResourceID, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setInput |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getDataService, getName, getSession, setDataService, setSession |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
protected java.net.URL mURL
protected ResourceID mResourceID
protected SessionStreamID mStreamID
protected ServiceType mServiceType
protected DataTransportMode mMode
protected int mNumberOfBlocks
protected GSIProtectionLevel mProtectionLevel
protected GSIAuthorizationType mAuthorizationType
| Constructor Detail |
public DeliverFromDT()
Source information must be set using the set
methods.
public DeliverFromDT(java.net.URL url,
ResourceID resourceID,
SessionStreamID streamID,
DataTransportMode mode)
url - Service from which data is to be retrieved.resourceID - Resource from which data is to be retrieved.streamID - Session and stream from which data is to be retrieved.mode - Data transfer mode.
java.lang.IllegalArgumentException - If url is null.
If resourceID is null.
If streamID is null.
If mode is null.| Method Detail |
public void setDataTransportInput(DataTransport service)
service - Data transport service proxy.
java.lang.IllegalArgumentException - If service is null.public void setDataTransportURL(java.net.URL url)
url - Service to which data is to be retrieved.
java.lang.IllegalArgumentException - If url is nullpublic void setDataTransportResourceID(ResourceID id)
id - Resource to which data is to be retrieved.
java.lang.IllegalArgumentException - If url is nullpublic void setDataTransportStreamID(SessionStreamID streamID)
streamID - Session and stream to which data is to be retrieved.
java.lang.IllegalArgumentException - If streamID is null.public void setServiceType(ServiceType serviceType)
serviceType - Service type.public void setDataTransportMode(DataTransportMode mode)
mode - Data transfer mode.
java.lang.IllegalArgumentException - If mode is null.public void setNumberOfBlocks(int numberOfBlocks)
DataTransportMode.BLOCK
numberOfBlocks - Number of blocks to transfer in one go.
java.lang.IllegalArgumentException - If numberOfBlocks is less than or equal to zero.
public void setGSISecureConversation(GSIProtectionLevel protectionLevel,
GSIAuthorizationType authorizationType)
protectionLevel - protection level required for the communication between the activity
and the remote service.authorizationType - type of authoization the activity should perform in its role as a
client talking to the remote service.public ActivityOutput getOutput()
protected java.lang.String generateXML()
RequestComponent
generateXML in class ActivityActivity.generateXML()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||