|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.transport.http.DeploymentDescriptorParser<A>
public class DeploymentDescriptorParser<A>
Parses sun-jaxws.xml into WSEndpoint.
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.
| Nested Class Summary | |
|---|---|
static interface |
DeploymentDescriptorParser.AdapterFactory<A>
Creates a new "Adapter". |
| Field Summary | |
|---|---|
static String |
ATTR_BINDING
|
static String |
ATTR_DATABINDING
|
static String |
ATTR_ENABLE_MTOM
|
static String |
ATTR_FILE
|
static String |
ATTR_IMPLEMENTATION
|
static String |
ATTR_MTOM_THRESHOLD_VALUE
|
static String |
ATTR_NAME
|
static String |
ATTR_PORT
|
static String |
ATTR_RESOURCE
|
static String |
ATTR_SERVICE
|
static String |
ATTR_URL_PATTERN
|
static String |
ATTR_VERSION
|
static String |
ATTR_WSDL
|
static List<String> |
ATTRVALUE_SUPPORTED_VERSIONS
|
static String |
JAXWS_WSDL_DD_DIR
|
static String |
NS_RUNTIME
|
static QName |
QNAME_ENDPOINT
|
static QName |
QNAME_ENDPOINTS
|
static QName |
QNAME_EXT_METADA
|
| Constructor Summary | |
|---|---|
DeploymentDescriptorParser(ClassLoader cl,
ResourceLoader loader,
Container container,
DeploymentDescriptorParser.AdapterFactory<A> adapterFactory)
|
|
| Method Summary | |
|---|---|
protected ExternalMetadataFeature |
configureExternalMetadataReader(XMLStreamReader reader)
|
protected static void |
fail(String key,
XMLStreamReader reader)
|
protected static void |
failWithFullName(String key,
XMLStreamReader reader)
|
protected static void |
failWithLocalName(String key,
XMLStreamReader reader)
|
protected static void |
failWithLocalName(String key,
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(XMLStreamReader reader,
Attributes attrs,
String name)
|
protected String |
getMandatoryNonEmptyAttribute(XMLStreamReader reader,
Attributes attributes,
String name)
|
protected String |
getNonEmptyAttribute(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 HttpAdapters. |
List<A> |
parse(String systemId,
InputStream is)
Parses the sun-jaxws.xml file and configures
a set of HttpAdapters. |
protected boolean |
setHandlersAndRoles(WSBinding binding,
XMLStreamReader reader,
QName serviceName,
QName portName)
Parses the handler and role information and sets it on the WSBinding. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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 QName QNAME_EXT_METADA
public static final String ATTR_FILE
public static final String ATTR_RESOURCE
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 List<String> ATTRVALUE_SUPPORTED_VERSIONS
| Constructor Detail |
|---|
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 WSEndpoints receive.adapterFactory - Creates HttpAdapter (or its derived class.)
MalformedURLException| Method Detail |
|---|
@NotNull
public List<A> parse(String systemId,
InputStream is)
sun-jaxws.xml file and configures
a set of HttpAdapters.
@NotNull
public List<A> parse(File f)
throws IOException
sun-jaxws.xml file and configures
a set of HttpAdapters.
IOException
@NotNull
public static String getBindingIdForToken(@NotNull
String lexical)
lexical - binding attribute value from DD. Always not null
protected String getAttribute(Attributes attrs,
String name)
protected QName getQNameAttribute(Attributes attrs,
String name)
protected String getNonEmptyAttribute(XMLStreamReader reader,
Attributes attrs,
String name)
protected String getMandatoryAttribute(XMLStreamReader reader,
Attributes attrs,
String name)
protected String getMandatoryNonEmptyAttribute(XMLStreamReader reader,
Attributes attributes,
String name)
protected boolean setHandlersAndRoles(WSBinding binding,
XMLStreamReader reader,
QName serviceName,
QName portName)
WSBinding.
protected ExternalMetadataFeature configureExternalMetadataReader(XMLStreamReader reader)
protected static void fail(String key,
XMLStreamReader reader)
protected static void failWithFullName(String key,
XMLStreamReader reader)
protected static void failWithLocalName(String key,
XMLStreamReader reader)
protected static void failWithLocalName(String key,
XMLStreamReader reader,
String arg)
protected Class loadClass(String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||