uk.org.ogsadai.activity.delivery.wsrf
  Class DeliverToGDTActivity
  
java.lang.Object
  |
  +--uk.org.ogsadai.activity.Activity
        |
        +--uk.org.ogsadai.activity.delivery.AbstractDTDeliveryActivity
              |
              +--uk.org.ogsadai.activity.delivery.AbstractDeliverToDTActivity
                    |
                    +--uk.org.ogsadai.activity.delivery.wsrf.DeliverToGDTActivity
  
  
    - public class DeliverToGDTActivity
- extends AbstractDeliverToDTActivity
This activity delivers data to a stream that is part of a session currently active within a data service resource exposed by a data service. The data transport put operations on the data service are used to put data from this activity onto the stream.
  Security attributes can be provided on the activity's XML definition provided to the constructor. These determine the security configured between the local and target services. See the following classes for more information.
  Currently credentials are not used when communicating with the data service.
  For information on this activity see the OGSA-DAI user doc: OGSA-DAI/doc/interaction/activities/delivery/deliverToGDT.html
  
  
  
    - Author:
- The OGSA-DAI Project Team
  
   
   
   
    
    
  
    
      | Method Summary | 
    
      | protected  void | contactTargetService()Create a stub for the target service.
 | 
    
      | protected  void | putBlock(java.lang.Object data)Deliver a block of data to the data service.
 | 
    
      | protected  void | putClosingBlock()Inform the data service that all blocks have been delivered.
 | 
    
      | protected  void | putFully(java.lang.Object data)Deliver a complete batch of data to the data service.
 | 
  
 
   
   
  
    
      | Methods inherited from class uk.org.ogsadai.activity.Activity | 
    
      | cleanUp, connectsTo, createOutputPipe, getActivityConfiguration, getActivityName, getCause, getName, getObservableStatus, getProperties, getSession, getStatus, hasActivityConfiguration, hasProperties, process, setActivityName, setCompleted, setError | 
  
 
  
    
      | Methods inherited from class java.lang.Object | 
    
      | clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
  
 
  
  
  COPYRIGHT_NOTICE
  
private static final java.lang.String COPYRIGHT_NOTICE
  
    - 
      Copyright statement
      
      
        - See Also:
- Constant Field Values
 
  
  LOG
  
private static final DAILogger LOG
  
    - 
      Logger object for logging in this class.
      
      
 
  
  mServiceStub
  
private DataService mServiceStub
  
    - 
      Stub for target service
      
      
 
  
  mSecurityProperties
  
private GSISecureConversationProperty mSecurityProperties
  
    - 
      Security configuration.
      
      
 
DeliverToGDTActivity
  
public DeliverToGDTActivity(org.w3c.dom.Element activity)
                     throws ActivityCreationException,
                            ActivitySpecificationException
  
putFully
  
protected void putFully(java.lang.Object data)
                 throws ActivitySpecificationException,
                        ActivityExecutionException
  
    - Description copied from class: AbstractDeliverToDTActivity
- 
      Deliver a complete batch of data to the data service.
      
    
- 
      
        - Specified by:
- putFullyin class- AbstractDeliverToDTActivity
 
- 
      
        - Parameters:
- data- Data to deliver.
- Throws:
- ActivitySpecificationException- If an error occurs that is caused by incorrect information in the request e.g. the URL is incorrect or cannot be contacted.
- ActivityExecutionException- If some internal problem outwith the client's control occurs.
 
  
  putBlock
  
protected void putBlock(java.lang.Object data)
                 throws ActivitySpecificationException,
                        ActivityExecutionException
  
    - Description copied from class: AbstractDeliverToDTActivity
- 
      Deliver a block of data to the data service.
      
    
- 
      
        - Specified by:
- putBlockin class- AbstractDeliverToDTActivity
 
- 
      
        - Parameters:
- data- Data to deliver.
- Throws:
- ActivityExecutionException- If some internal problem outwith the client's control occurs.
- ActivitySpecificationException- If an error occurs that is caused by incorrect information in the request e.g. the URL is incorrect or cannot be contacted.
 
  
  putClosingBlock
  
protected void putClosingBlock()
                        throws ActivitySpecificationException,
                               ActivityExecutionException
  
    - Description copied from class: AbstractDeliverToDTActivity
- 
      Inform the data service that all blocks have been delivered.
      
    
- 
      
        - Specified by:
- putClosingBlockin class- AbstractDeliverToDTActivity
 
- 
      
        - Throws:
- ActivityExecutionException- If some internal problem outwith the client's control occurs.
- ActivitySpecificationException- If an error occurs that is caused by incorrect information in the request e.g. the URL is incorrect or cannot be contacted.
 
  
  contactTargetService
  
protected void contactTargetService()
                             throws ActivitySpecificationException,
                                    ActivityExecutionException
  
    - Description copied from class: AbstractDTDeliveryActivity
- 
      Create a stub for the target service.
      
    
- 
      
        - Specified by:
- contactTargetServicein class- AbstractDTDeliveryActivity
 
- 
      
        - Throws:
- ActivitySpecificationException- If an error occurs that is caused by incorrect information in the request e.g. the URL is incorrect or cannot be contacted.
- ActivityExecutionException- If some internal problem outwith the client's control occurs.