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:
- 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.
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 |
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 |
BulkResponseImpl
public BulkResponseImpl()
- Creates a new instance of BulkResponseImpl
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.