JAXRResponse (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.xml.registry Interface JAXRResponse

所有已知子接口:
BulkResponse
所有已知实现子孙类:
DeleteException, FindException, InvalidRequestException, JAXRException, RegistryException, SaveException, UnexpectedObjectException, UnsupportedCapabilityException

public interface JAXRResponse

A JAXR requests' response.

作者:
Farrukh S. Najmi
另请参见:
JAXRException

字段摘要
static int STATUS_FAILURE
          Status indicating a failure response.
static int STATUS_SUCCESS
          Status indicating a successful response.
static int STATUS_UNAVAILABLE
          Status indicating that the results are currently unavailable.
static int STATUS_WARNING
          Status indicating a successful response that included at least one warning.
 
方法摘要
 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.
 

字段详细信息

STATUS_SUCCESS

static final int STATUS_SUCCESS
Status indicating a successful response.

另请参见:
常量字段


STATUS_WARNING

static final int STATUS_WARNING
Status indicating a successful response that included at least one warning.

另请参见:
常量字段


STATUS_FAILURE

static final int STATUS_FAILURE
Status indicating a failure response.

另请参见:
常量字段


STATUS_UNAVAILABLE

static final int STATUS_UNAVAILABLE
Status indicating that the results are currently unavailable.

另请参见:
常量字段

方法详细信息

getRequestId

String getRequestId()
                    throws JAXRException
Returns the unique id for the request that generated this response.

Capability Level: 0

返回:
the request id
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

getStatus

int getStatus()
              throws JAXRException
Returns the status for this response.

Capability Level: 0

返回:
the status which is an integer enumerated value
抛出异常:
JAXRException - If the JAXR provider encounters an internal error
另请参见:
STATUS_SUCCESS

isAvailable

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

Capability Level: 0

返回:
true if the response is available; false otherwise
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.