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:
javax.xml.registry.BulkResponse, javax.xml.registry.JAXRResponse

public class BulkResponseImpl
extends JAXRResponseImpl
implements javax.xml.registry.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
 java.util.Collection<? extends java.lang.Object> getCollection()
          Get Collection of RegistryObjects *
 java.util.Collection getExceptions()
          The javadoc is unclear.
 boolean isPartialResponse()
           
 void setCollection(java.util.Collection<? extends java.lang.Object> coll)
           
 void setExceptions(java.util.Collection<java.lang.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 java.util.Collection<? extends java.lang.Object> getCollection()
                                                               throws javax.xml.registry.JAXRException
Get Collection of RegistryObjects *

Specified by:
getCollection in interface javax.xml.registry.BulkResponse
Throws:
javax.xml.registry.JAXRException

getExceptions

public java.util.Collection getExceptions()
                                   throws javax.xml.registry.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 javax.xml.registry.BulkResponse
Returns:
Collection Exceptions
Throws:
javax.xml.registry.JAXRException

isPartialResponse

public boolean isPartialResponse()
                          throws javax.xml.registry.JAXRException
Specified by:
isPartialResponse in interface javax.xml.registry.BulkResponse
Throws:
javax.xml.registry.JAXRException

setPartialResponse

public void setPartialResponse(boolean b)
                        throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

setCollection

public void setCollection(java.util.Collection<? extends java.lang.Object> coll)
                   throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

setExceptions

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

Parameters:
exceptions - New value of property exceptions.


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.