RegistryService (Java EE 5)

Java EE API


javax.xml.registry Interface RegistryService


public interface RegistryService


此类是 JAXR 提供者实现的主体接口。注册表客户端可通过到某个注册表的 Connection 获取此接口。它提供客户端使用的方法,以发现 JAXR 提供者实现的各种特定于功能的接口。
英文文档:

This is the principal interface implemented by a JAXR provider. A registry client can get this interface from a Connection to a registry. It provides the methods that are used by the client to discover various capability specific interfaces implemented by the JAXR provider.

Author:
Farrukh S. Najmi
See Also:
Connection

Method Summary
 BulkResponse
 BusinessLifeCycleManager
 BusinessQueryManager
 CapabilityProfile
 DeclarativeQueryManager
 ClassificationScheme
 String
 

Method Detail

public CapabilityProfile getCapabilityProfile() throws JAXRException
返回 JAXR 提供者的 CapabilityProfile。

功能级别:0
return JAXR 提供者的 CapabilityProfile
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
associates <{javax.xml.registry.CapabilityProfile}>
See also javax.xml.registry.LifeCycleManager
英文文档:

getCapabilityProfile

CapabilityProfile getCapabilityProfile()
                                       throws JAXRException
Returns the CapabilityProfile for the JAXR provider.

Capability Level: 0

Returns:
the CapabilityProfile for a JAXR provider
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
LifeCycleManager

public BusinessLifeCycleManager getBusinessLifeCycleManager() throws JAXRException
返回 JAXR 提供者实现的 BusinessLifeCycleManager 对象。

功能级别:0
return BusinessLifeCycleManager
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
associates <{javax.xml.registry.BusinessLifeCycleManager}>
See also javax.xml.registry.LifeCycleManager
英文文档:

getBusinessLifeCycleManager

BusinessLifeCycleManager getBusinessLifeCycleManager()
                                                     throws JAXRException
Returns the BusinessLifeCycleManager object implemented by the JAXR provider.

Capability Level: 0

Returns:
the BusinessLifeCycleManager
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
LifeCycleManager

public BusinessQueryManager getBusinessQueryManager() throws JAXRException
返回 JAXR 提供者实现的 BusinessQueryManager 对象。

功能级别:0
return BusinessQueryManaer
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
associates <{BusinessQueryManager}>
directed
英文文档:

getBusinessQueryManager

BusinessQueryManager getBusinessQueryManager()
                                             throws JAXRException
Returns the BusinessQueryManager object implemented by the JAXR provider.

Capability Level: 0

Returns:
the BusinessQueryManaer
Throws:
JAXRException - If the JAXR provider encounters an internal error

public DeclarativeQueryManager getDeclarativeQueryManager() throws JAXRException, UnsupportedCapabilityException
返回 JAXR 提供者实现的 DeclarativeQueryManager 对象。

功能级别:1
return DeclarativeQueryManager
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
associates <{DeclarativeQueryManager}>
directed
英文文档:

getDeclarativeQueryManager

DeclarativeQueryManager getDeclarativeQueryManager()
                                                   throws JAXRException,
                                                          UnsupportedCapabilityException
Returns the DeclarativeQueryManager object implemented by the JAXR provider.

Capability Level: 1

Returns:
the DeclarativeQueryManager
Throws:
JAXRException - If the JAXR provider encounters an internal error
UnsupportedCapabilityException

public BulkResponse getBulkResponse(String requestId) throws InvalidRequestException, JAXRException
返回与指定 requestId 关联的 BulkResponse。客户端获取特定 requestId 的 BulkResponse 后,任何获取同一个 requestId 的 Bulkresponse 的后续调用都将导致 InvalidRequestException。

功能级别:0
requestId 上一个异步请求的 ID
return 包含指定请求的结果的 BulkResponse
ThrowsInvalidRequestException: 如果不存在指定 requestId 的响应
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

getBulkResponse

BulkResponse getBulkResponse(String requestId)
                             throws InvalidRequestException,
                                    JAXRException
Returns the BulkResponse associated with specified requestId. Once a client retrieves a BulkResponse for a particular requestId any subsequent calls to retrieve the Bulkresponse for the same requestId should result in an InvalidRequestException.

Capability Level: 0

Parameters:
requestId - the id for a previous asynchronous request
Returns:
the BulkResponse that contains the result for the specified request
Throws:
InvalidRequestException - if no responses exist for specified requestId
JAXRException - If the JAXR provider encounters an internal error

public ClassificationScheme getDefaultPostalScheme() throws JAXRException
获取用来对 PostalAddress 的属性进行编码的默认用户定义邮政方案。

功能级别:0
return 作为默认邮政方案的 ClassificationScheme
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

getDefaultPostalScheme

ClassificationScheme getDefaultPostalScheme()
                                            throws JAXRException
Gets the default user-defined postal scheme for codifying the attributes of PostalAddress.

Capability Level: 0

Returns:
the ClassificationScheme that is the default postal scheme
Throws:
JAXRException - If the JAXR provider encounters an internal error

public String makeRegistrySpecificRequest(String request) throws JAXRException
使用的 String 是特定于注册表的格式的 XML 请求,将该请求发送到注册表,并返回作为特定于注册表的 XML 响应的 String。

功能级别:0
request String 表示形式的特定于注册表的请求
return 作为特定于注册表的 XML 响应的 String
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

makeRegistrySpecificRequest

String makeRegistrySpecificRequest(String request)
                                   throws JAXRException
Takes a String that is an XML request in a registry-specific format, sends the request to the registry, and returns a String that is the registry-specific XML response.

Capability Level: 0

Parameters:
request - the registry-specific request in a String representation
Returns:
the String that is the XML response in a registry-specific manner
Throws:
JAXRException - If the JAXR provider encounters an internal error


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!