org.apache.ws.scout.registry
Class BulkResponseImpl
java.lang.Object
org.apache.ws.scout.registry.JAXRResponseImpl
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.
Constructor Summary |
BulkResponseImpl()
Creates a new instance of BulkResponseImpl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BulkResponseImpl
public BulkResponseImpl()
- Creates a new instance of BulkResponseImpl
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.