ServiceBinding (Java EE 5)

Java EE API


javax.xml.registry.infomodel Interface ServiceBinding

All Superinterfaces:
ExtensibleObject, RegistryObject, URIValidator

public interface ServiceBinding
extends RegistryObject, URIValidator


ServiceBinding 实例是表示技术信息的 RegistryObject,这些技术可以用特殊方式访问 Service 实例提供的特定接口。一个 ServiceBinding 可以包含一组 SpecificationLink 实例。映射到 UDDI 中的 BindingTemplate。
英文文档:

ServiceBinding instances are RegistryObjects that represent technical information on a specific way to access a specific interface offered by a Service instance. A ServiceBinding may have a set of SpecificationLink instances. Maps to a BindingTemplate in UDDI.

Author:
Farrukh S. Najmi
See Also:
Concept

Method Summary
 void
 void
 String
 Service
 Collection
 ServiceBinding
 void
 void
 void
 void
 
Methods inherited from interface javax.xml.registry.infomodel.RegistryObject
 
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
 
Methods inherited from interface javax.xml.registry.infomodel.URIValidator
 

Method Detail

public String getAccessURI() throws JAXRException
获取通过此绑定提供服务访问的 URI。默认值为 NULL 字符串。

功能级别:0
return 通过此绑定提供服务访问的 URI
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

getAccessURI

String getAccessURI()
                    throws JAXRException
Gets the URI that gives access to the service via this binding. Default is a NULL String.

Capability Level: 0

Returns:
the URI that gives access to the service via this binding
Throws:
JAXRException - If the JAXR provider encounters an internal error

public void setAccessURI(String uri) throws JAXRException
设置通过此绑定提供服务访问的 URI。accessURI 与 targetBinding 是互斥的。如果在已经定义了一个非 null targetBinding 的情况下设置 accessURI,则 JAXR 提供者必定抛出 InvalidRequestException。

功能级别:0
uri 通过此绑定提供服务访问的 URI
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

setAccessURI

void setAccessURI(String uri)
                  throws JAXRException
Sets the URI that gives access to the service via this binding. The accessURI is mutually exclusive from targetBinding. JAXR Provider must throw an InvalidRequestException if an accessURI is set when there is already a non-null targetBinding defined.

Capability Level: 0

Parameters:
uri - the URI that gives access to the service via this binding
Throws:
JAXRException - If the JAXR provider encounters an internal error

public ServiceBinding getTargetBinding() throws JAXRException
从一个服务提供者重定向到另一个服务提供者时获取下一个 ServiceBinding。

功能级别:0
return 存在服务重定向时的下一个 ServiceBinding
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

getTargetBinding

ServiceBinding getTargetBinding()
                                throws JAXRException
Gets the next ServiceBinding in case there is a redirection from one service provider to another service provider.

Capability Level: 0

Returns:
the next ServiceBinding in case there is a service redirection
Throws:
JAXRException - If the JAXR provider encounters an internal error

public void setTargetBinding(ServiceBinding binding) throws JAXRException
设置存在重定向时的下一个 ServiceBinding。targetBinding 与 accessURI 是互斥的。如果在定义了一个非 null accessURI 的情况下设置 targetBinding,则 JAXR 提供者必定抛出 InvalidRequestExcpetion。

功能级别:0
binding 此对象重定向的目标 ServiceBinding
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

setTargetBinding

void setTargetBinding(ServiceBinding binding)
                      throws JAXRException
Sets the next ServiceBinding in case there is a redirection. The targetBinding is mutually exclusive from the accessURI. JAXR Provider must throw an InvalidRequestExcpetion if a targetBinding is set when there is already a non-null accessURI defined.

Capability Level: 0

Parameters:
binding - the target ServiceBinding to which this object is redirected to
Throws:
JAXRException - If the JAXR provider encounters an internal error

public Service getService() throws JAXRException
获取绑定此服务的父服务。

功能级别:0
return 父 Service 对象
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

getService

Service getService()
                   throws JAXRException
Gets the parent service for which this is a binding.

Capability Level: 0

Returns:
the parent Service object
Throws:
JAXRException - If the JAXR provider encounters an internal error

public void addSpecificationLink(SpecificationLink specificationLink) throws JAXRException
添加一个子 SpecificationLink。

功能级别:0
specificationLink 将添加的 SpecificationLink
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

addSpecificationLink

void addSpecificationLink(SpecificationLink specificationLink)
                          throws JAXRException
Adds a child SpecificationLink.

Capability Level: 0

Parameters:
specificationLink - the SpecificationLink being added
Throws:
JAXRException - If the JAXR provider encounters an internal error

public void addSpecificationLinks(java.util.Collection<E> specificationLinks) throws JAXRException
添加一个 SpecificationLink 子代所组成的 Collection。

功能级别:0
specificationLinks 将添加的 SpecificationLink 所组成的 Collection
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

addSpecificationLinks

void addSpecificationLinks(Collection specificationLinks)
                           throws JAXRException
Adds a Collection of SpecificationLink children.

Capability Level: 0

Parameters:
specificationLinks - the Collection of SpecificationLinks being added
Throws:
JAXRException - If the JAXR provider encounters an internal error

public void removeSpecificationLink(SpecificationLink specificationLink) throws JAXRException
移除一个子 SpecificationLink。

功能级别:0
specificationLink 将添加的 SpecificationLink
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

removeSpecificationLink

void removeSpecificationLink(SpecificationLink specificationLink)
                             throws JAXRException
Removes a child SpecificationLink.

Capability Level: 0

Parameters:
specificationLink - the SpecificationLink being removed
Throws:
JAXRException - If the JAXR provider encounters an internal error

public void removeSpecificationLinks(java.util.Collection<E> specificationLinks) throws JAXRException
移除一个 SpecificationLink 子代所组成的 Collection。

功能级别:0
specificationLinks 将移除的 SpecificationLink 所组成的 Collection
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

removeSpecificationLinks

void removeSpecificationLinks(Collection specificationLinks)
                              throws JAXRException
Removes a Collection of children SpecificationLinks.

Capability Level: 0

Parameters:
specificationLinks - the Collection of SpecificationLinks being removed
Throws:
JAXRException - If the JAXR provider encounters an internal error

public java.util.Collection<E> getSpecificationLinks() throws JAXRException
获取所有子代 SpecificationLink。

功能级别:0
return SpecificationLink 实例所组成的 Collection。Collection 可以为空,但不能为 null。
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
supplierCardinality1..*
associates <{javax.xml.registry.infomodel.SpecificationLink}>
link
aggregationByValue
See also javax.xml.registry.infomodel.SpecificationLink
英文文档:

getSpecificationLinks

Collection getSpecificationLinks()
                                 throws JAXRException
Gets all children SpecificationLinks.

Capability Level: 0

Returns:
Collection of SpecificationLink instances. The Collection may be empty but not null.
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
SpecificationLink


Submit a bug or feature

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

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

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