Package com.sun.xml.ws.api
Class BindingIDFactory
- java.lang.Object
-
- com.sun.xml.ws.api.BindingIDFactory
-
public abstract class BindingIDFactory extends Object
Extension point to plug in additionalBindingIDparsing logic.When the JAX-WS RI is asked to parse a binding ID string into a
BindingIDobject, it uses service idiom to look for the implementations of this class in theMETA-INF/services/....- Since:
- JAX-WS 2.0.next
- Author:
- Kohsuke Kawaguchi
- See Also:
BindingID.parse(String)
-
-
Constructor Summary
Constructors Constructor Description BindingIDFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BindingIDcreate(String transport, SOAPVersion soapVersion)Creates aBindingIDfor given transport and SOAPVersion.abstract BindingIDparse(String lexical)Parses a binding ID string intoBindingIDif possible.
-
-
-
Method Detail
-
parse
@Nullable public abstract BindingID parse(@NotNull String lexical) throws javax.xml.ws.WebServiceException
Parses a binding ID string intoBindingIDif possible.- Returns:
- a non-null return value would cause the JAX-WS RI to consider
the parsing to be successful. No furhter
BindingIDFactorywill be consulted.Retruning a null value indicates that this factory doesn't understand this string, in which case the JAX-WS RI will keep asking next
BindingIDFactory. - Throws:
javax.xml.ws.WebServiceException- if the implementation understood the lexical value but it is not correct, this exception can be thrown to abort the parsing with error. No furtherBindingIDFactorywill be consulted, andBindingID.parse(String)will throw the exception.
-
create
@Nullable public BindingID create(@NotNull String transport, @NotNull SOAPVersion soapVersion) throws javax.xml.ws.WebServiceException
Creates aBindingIDfor given transport and SOAPVersion.- Returns:
- a non-null return value would cause the JAX-WS RI to consider
the creation to be successful. No furhter
BindingIDFactorywill be consulted.Retruning a null value indicates that this factory doesn't understand the transport, in which case the JAX-WS RI will keep asking next
BindingIDFactory. - Throws:
javax.xml.ws.WebServiceException- if the implementation understood the transport but it is not correct, this exception can be thrown to abort the creation with error. No furtherBindingIDFactorywill be consulted, andcreate(String, SOAPVersion)will throw the exception.
-
-