public class DeploymentDescriptorParser<A> extends Object
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.
Modifier and Type | Class and Description |
---|---|
static interface |
DeploymentDescriptorParser.AdapterFactory<A>
Creates a new "Adapter".
|
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_BINDING |
static String |
ATTR_DATABINDING |
static String |
ATTR_ENABLE_MTOM |
static String |
ATTR_IMPLEMENTATION |
static String |
ATTR_MTOM_THRESHOLD_VALUE |
static String |
ATTR_NAME |
static String |
ATTR_PORT |
static String |
ATTR_SERVICE |
static String |
ATTR_URL_PATTERN |
static String |
ATTR_VERSION |
static String |
ATTR_WSDL |
static String |
ATTRVALUE_VERSION_1_0 |
static String |
JAXWS_WSDL_DD_DIR |
static String |
NS_RUNTIME |
static QName |
QNAME_ENDPOINT |
static QName |
QNAME_ENDPOINTS |
Constructor and Description |
---|
DeploymentDescriptorParser(ClassLoader cl,
ResourceLoader loader,
Container container,
DeploymentDescriptorParser.AdapterFactory<A> adapterFactory) |
Modifier and Type | Method and Description |
---|---|
protected static void |
ensureNoContent(javax.xml.stream.XMLStreamReader reader) |
protected static void |
fail(String key,
javax.xml.stream.XMLStreamReader reader) |
protected static void |
failWithFullName(String key,
javax.xml.stream.XMLStreamReader reader) |
protected static void |
failWithLocalName(String key,
javax.xml.stream.XMLStreamReader reader) |
protected static void |
failWithLocalName(String key,
javax.xml.stream.XMLStreamReader reader,
String arg) |
protected String |
getAttribute(Attributes attrs,
String name) |
static String |
getBindingIdForToken(String lexical)
JSR-109 defines short-form tokens for standard binding Ids.
|
protected String |
getMandatoryAttribute(javax.xml.stream.XMLStreamReader reader,
Attributes attrs,
String name) |
protected String |
getMandatoryNonEmptyAttribute(javax.xml.stream.XMLStreamReader reader,
Attributes attributes,
String name) |
protected String |
getNonEmptyAttribute(javax.xml.stream.XMLStreamReader reader,
Attributes attrs,
String name) |
protected QName |
getQNameAttribute(Attributes attrs,
String name) |
protected Class |
loadClass(String name) |
List<A> |
parse(File f)
Parses the
sun-jaxws.xml file and configures
a set of HttpAdapter s. |
List<A> |
parse(String systemId,
InputStream is)
Parses the
sun-jaxws.xml file and configures
a set of HttpAdapter s. |
protected boolean |
setHandlersAndRoles(WSBinding binding,
javax.xml.stream.XMLStreamReader reader,
QName serviceName,
QName portName)
Parses the handler and role information and sets it
on the
WSBinding . |
public static final String NS_RUNTIME
public static final String JAXWS_WSDL_DD_DIR
public static final QName QNAME_ENDPOINTS
public static final QName QNAME_ENDPOINT
public static final String ATTR_VERSION
public static final String ATTR_NAME
public static final String ATTR_IMPLEMENTATION
public static final String ATTR_WSDL
public static final String ATTR_SERVICE
public static final String ATTR_PORT
public static final String ATTR_URL_PATTERN
public static final String ATTR_ENABLE_MTOM
public static final String ATTR_MTOM_THRESHOLD_VALUE
public static final String ATTR_BINDING
public static final String ATTR_DATABINDING
public static final String ATTRVALUE_VERSION_1_0
public DeploymentDescriptorParser(ClassLoader cl, ResourceLoader loader, Container container, DeploymentDescriptorParser.AdapterFactory<A> adapterFactory) throws MalformedURLException
cl
- Used to load service implementations.loader
- Used to locate resources, in particular WSDL.container
- Optional Container
that WSEndpoint
s receive.adapterFactory
- Creates HttpAdapter
(or its derived class.)MalformedURLException
@NotNull public List<A> parse(String systemId, InputStream is)
sun-jaxws.xml
file and configures
a set of HttpAdapter
s.@NotNull public List<A> parse(File f) throws IOException
sun-jaxws.xml
file and configures
a set of HttpAdapter
s.IOException
@NotNull public static String getBindingIdForToken(@NotNull String lexical)
lexical
- binding attribute value from DD. Always not nullprotected String getAttribute(Attributes attrs, String name)
protected QName getQNameAttribute(Attributes attrs, String name)
protected String getNonEmptyAttribute(javax.xml.stream.XMLStreamReader reader, Attributes attrs, String name)
protected String getMandatoryAttribute(javax.xml.stream.XMLStreamReader reader, Attributes attrs, String name)
protected String getMandatoryNonEmptyAttribute(javax.xml.stream.XMLStreamReader reader, Attributes attributes, String name)
protected boolean setHandlersAndRoles(WSBinding binding, javax.xml.stream.XMLStreamReader reader, QName serviceName, QName portName)
WSBinding
.protected static void ensureNoContent(javax.xml.stream.XMLStreamReader reader)
protected static void fail(String key, javax.xml.stream.XMLStreamReader reader)
protected static void failWithFullName(String key, javax.xml.stream.XMLStreamReader reader)
protected static void failWithLocalName(String key, javax.xml.stream.XMLStreamReader reader)
protected static void failWithLocalName(String key, javax.xml.stream.XMLStreamReader reader, String arg)
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.