com.sun.xml.registry.ebxml
Class BulkResponseImpl

java.lang.Object
  extended bycom.sun.xml.registry.ebxml.BulkResponseImpl
All Implemented Interfaces:
javax.xml.registry.BulkResponse, javax.xml.registry.JAXRResponse

public class BulkResponseImpl
extends java.lang.Object
implements javax.xml.registry.BulkResponse

Class Declaration for Class1


Field Summary
 
Fields inherited from interface javax.xml.registry.JAXRResponse
STATUS_FAILURE, STATUS_SUCCESS, STATUS_UNAVAILABLE, STATUS_WARNING
 
Constructor Summary
BulkResponseImpl(LifeCycleManagerImpl lcm, org.oasis.ebxml.registry.bindings.rs.RegistryResponse ebResponse, java.util.HashMap responseAttachments)
          Note: BulkResponseImpl is not an infomodel object even though this constructor looks like constructors in the infomodel subpackage.
 
Method Summary
 java.util.Collection getCollection()
          Get the Collection of of objects returned as a response of a bulk operation.
 java.util.Collection getExceptions()
          Get the JAXRException(s) Collection in case of partial commit.
 java.lang.String getRequestId()
          Returns the unique id for the request that generated this response.
 int getStatus()
          Returns the status for this response.
 boolean isAvailable()
          Returns true if a response is available, false otherwise.
 boolean isPartialResponse()
          Returns true if the reponse is a partial response due to large result set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkResponseImpl

public BulkResponseImpl(LifeCycleManagerImpl lcm,
                        org.oasis.ebxml.registry.bindings.rs.RegistryResponse ebResponse,
                        java.util.HashMap responseAttachments)
                 throws javax.xml.registry.JAXRException
Note: BulkResponseImpl is not an infomodel object even though this constructor looks like constructors in the infomodel subpackage. Therefore, the LifeCycleManagerImpl argument is not stored.

Method Detail

getCollection

public java.util.Collection getCollection()
                                   throws javax.xml.registry.JAXRException
Get the Collection of of objects returned as a response of a bulk operation. Caller thread will block here if result is not yet available.

Capability Level: 0

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
Get the JAXRException(s) Collection 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 JAXRException(s).

Capability Level: 0

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

isPartialResponse

public boolean isPartialResponse()
                          throws javax.xml.registry.JAXRException
Returns true if the reponse is a partial response due to large result set

Capability Level: 0

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

getRequestId

public java.lang.String getRequestId()
                              throws javax.xml.registry.JAXRException
Returns the unique id for the request that generated this response.

Capability Level: 0

Specified by:
getRequestId in interface javax.xml.registry.JAXRResponse
Throws:
javax.xml.registry.JAXRException

getStatus

public int getStatus()
              throws javax.xml.registry.JAXRException
Returns the status for this response.

Capability Level: 0

Specified by:
getStatus in interface javax.xml.registry.JAXRResponse
Throws:
javax.xml.registry.JAXRException

isAvailable

public boolean isAvailable()
                    throws javax.xml.registry.JAXRException
Returns true if a response is available, false otherwise. This is a polling method and must not block.

Capability Level: 0

Specified by:
isAvailable in interface javax.xml.registry.JAXRResponse
Throws:
javax.xml.registry.JAXRException


Copyright © 2001-2004 OASIS. All Rights Reserved.