org.apache.ws.scout.registry
Class BulkResponseImpl

java.lang.Object
  extended by org.apache.ws.scout.registry.JAXRResponseImpl
      extended by org.apache.ws.scout.registry.BulkResponseImpl
All Implemented Interfaces:
BulkResponse, JAXRResponse

public class BulkResponseImpl
extends JAXRResponseImpl
implements BulkResponse

Implements JAXR BulkResponse Interface. For futher details, look into the JAXR API Javadoc.

Author:
Anil Saldhana, Geir Magnusson Jr.

Field Summary
 
Fields inherited from class org.apache.ws.scout.registry.JAXRResponseImpl
STATUS_FAILURE, STATUS_SUCCESS, STATUS_UNAVAILABLE, STATUS_WARNING
 
Fields inherited from interface javax.xml.registry.JAXRResponse
STATUS_FAILURE, STATUS_SUCCESS, STATUS_UNAVAILABLE, STATUS_WARNING
 
Constructor Summary
BulkResponseImpl()
          Creates a new instance of BulkResponseImpl
 
Method Summary
 Collection<? extends Object> getCollection()
          Get Collection of RegistryObjects *
 Collection<Exception> getExceptions()
          The javadoc is unclear.
 boolean isPartialResponse()
           
 void setCollection(Collection<? extends Object> coll)
           
 void setExceptions(Collection<Exception> exceptions)
          Setter for property exceptions.
 void setPartialResponse(boolean b)
           
 
Methods inherited from class org.apache.ws.scout.registry.JAXRResponseImpl
getRequestId, getStatus, isAvailable, setAvailable, setRequestId, setStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.registry.JAXRResponse
getRequestId, getStatus, isAvailable
 

Constructor Detail

BulkResponseImpl

public BulkResponseImpl()
Creates a new instance of BulkResponseImpl

Method Detail

getCollection

public Collection<? extends Object> getCollection()
                                           throws JAXRException
Get Collection of RegistryObjects *

Specified by:
getCollection in interface BulkResponse
Throws:
JAXRException

getExceptions

public Collection<Exception> getExceptions()
                                    throws JAXRException
The javadoc is unclear. it says for getExceptions() : "Get the Collection of RegistryException instances in case of partial commit. Caller thread will block here if result is not yet available. Return null if result is available and there is no RegistryException(s)." Yet the return javadoc says : "Collection of RegistryException instances. The Collection may be empty but not null." So my interpretation is return null if result avail, and empty collection otherwise

Specified by:
getExceptions in interface BulkResponse
Returns:
Throws:
JAXRException

isPartialResponse

public boolean isPartialResponse()
                          throws JAXRException
Specified by:
isPartialResponse in interface BulkResponse
Throws:
JAXRException

setPartialResponse

public void setPartialResponse(boolean b)
                        throws JAXRException
Throws:
JAXRException

setCollection

public void setCollection(Collection<? extends Object> coll)
                   throws JAXRException
Throws:
JAXRException

setExceptions

public void setExceptions(Collection<Exception> exceptions)
Setter for property exceptions.

Parameters:
exceptions - New value of property exceptions.


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.