Package com.sun.xml.ws.transport.http
Class DeploymentDescriptorParser<A>
java.lang.Object
com.sun.xml.ws.transport.http.DeploymentDescriptorParser<A>
Parses
Since
sun-jaxws.xml into WSEndpoint.
Since
sun-jaxws.xml captures more information than what WSEndpoint
represents (in particular URL pattern and name), this class
takes a parameterization 'A' so that the user of this parser can choose to
create another type that wraps WSEndpoint.
HttpAdapter and its derived type is used for this often,
but it can be anything.- Author:
- WS Development Team, Kohsuke Kawaguchi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCreates a new "Adapter". -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final QNamestatic final QNamestatic final QName -
Constructor Summary
ConstructorsConstructorDescriptionDeploymentDescriptorParser(ClassLoader cl, ResourceLoader loader, Container container, DeploymentDescriptorParser.AdapterFactory<A> adapterFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected ExternalMetadataFeatureprotected static voidfail(String key, XMLStreamReader reader) protected static voidfailWithFullName(String key, XMLStreamReader reader) protected static voidfailWithLocalName(String key, XMLStreamReader reader) protected static voidfailWithLocalName(String key, XMLStreamReader reader, String arg) protected StringgetAttribute(Attributes attrs, String name) static StringgetBindingIdForToken(String lexical) JSR-109 defines short-form tokens for standard binding Ids.protected StringgetMandatoryAttribute(XMLStreamReader reader, Attributes attrs, String name) protected StringgetMandatoryNonEmptyAttribute(XMLStreamReader reader, Attributes attributes, String name) protected StringgetNonEmptyAttribute(XMLStreamReader reader, Attributes attrs, String name) protected QNamegetQNameAttribute(Attributes attrs, String name) protected ClassParses thesun-jaxws.xmlfile and configures a set ofHttpAdapters.parse(String systemId, InputStream is) Parses thesun-jaxws.xmlfile and configures a set ofHttpAdapters.protected booleansetHandlersAndRoles(WSBinding binding, XMLStreamReader reader, QName serviceName, QName portName) Parses the handler and role information and sets it on theWSBinding.
-
Field Details
-
NS_RUNTIME
- See Also:
-
JAXWS_WSDL_DD_DIR
- See Also:
-
QNAME_ENDPOINTS
-
QNAME_ENDPOINT
-
QNAME_EXT_METADA
-
ATTR_FILE
- See Also:
-
ATTR_RESOURCE
- See Also:
-
ATTR_VERSION
- See Also:
-
ATTR_NAME
- See Also:
-
ATTR_IMPLEMENTATION
- See Also:
-
ATTR_WSDL
- See Also:
-
ATTR_SERVICE
- See Also:
-
ATTR_PORT
- See Also:
-
ATTR_URL_PATTERN
- See Also:
-
ATTR_ENABLE_MTOM
- See Also:
-
ATTR_MTOM_THRESHOLD_VALUE
- See Also:
-
ATTR_BINDING
- See Also:
-
ATTR_DATABINDING
- See Also:
-
ATTRVALUE_SUPPORTED_VERSIONS
-
-
Constructor Details
-
DeploymentDescriptorParser
public DeploymentDescriptorParser(ClassLoader cl, ResourceLoader loader, Container container, DeploymentDescriptorParser.AdapterFactory<A> adapterFactory) throws MalformedURLException - Parameters:
cl- Used to load service implementations.loader- Used to locate resources, in particular WSDL.container- OptionalContainerthatWSEndpoints receive.adapterFactory- CreatesHttpAdapter(or its derived class.)- Throws:
MalformedURLException
-
-
Method Details
-
parse
Parses thesun-jaxws.xmlfile and configures a set ofHttpAdapters. -
parse
Parses thesun-jaxws.xmlfile and configures a set ofHttpAdapters.- Throws:
IOException
-
getBindingIdForToken
JSR-109 defines short-form tokens for standard binding Ids. These are used only in DD. So stand alone deployment descirptor should also honor these tokens. This method converts the tokens to API's standard binding ids- Parameters:
lexical- binding attribute value from DD. Always not null- Returns:
- returns corresponding API's binding ID or the same lexical
-
getAttribute
-
getQNameAttribute
-
getNonEmptyAttribute
-
getMandatoryAttribute
-
getMandatoryNonEmptyAttribute
protected String getMandatoryNonEmptyAttribute(XMLStreamReader reader, Attributes attributes, String name) -
setHandlersAndRoles
protected boolean setHandlersAndRoles(WSBinding binding, XMLStreamReader reader, QName serviceName, QName portName) Parses the handler and role information and sets it on theWSBinding.- Returns:
- true if <handler-chains> element present in DD false otherwise.
-
configureExternalMetadataReader
-
fail
-
failWithFullName
-
failWithLocalName
-
failWithLocalName
-
loadClass
-