Class DeploymentDescriptorParser<A>
- java.lang.Object
-
- com.sun.xml.ws.transport.httpspi.servlet.DeploymentDescriptorParser<A>
-
public class DeploymentDescriptorParser<A> extends Object
Parsessun-jaxws.xml- Author:
- Jitendra Kotamraju
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDeploymentDescriptorParser.AdapterFactory<A>Creates a new "Adapter".
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_BINDINGstatic StringATTR_ENABLE_MTOMstatic StringATTR_IMPLEMENTATIONstatic StringATTR_MTOM_THRESHOLD_VALUEstatic StringATTR_NAMEstatic StringATTR_PORTstatic StringATTR_SERVICEstatic StringATTR_URL_PATTERNstatic StringATTR_VERSIONstatic StringATTR_WSDLstatic StringATTRVALUE_VERSION_1_0static StringJAXWS_WSDL_DD_DIRstatic StringNS_RUNTIMEstatic QNameQNAME_ENDPOINTstatic QNameQNAME_ENDPOINTS
-
Constructor Summary
Constructors Constructor Description DeploymentDescriptorParser(ClassLoader cl, ResourceLoader loader, DeploymentDescriptorParser.AdapterFactory<A> adapterFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidensureNoContent(XMLStreamReader reader)protected 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(XMLStreamReader reader, String name)protected StringgetMandatoryAttribute(XMLStreamReader reader, String name)protected StringgetMandatoryNonEmptyAttribute(XMLStreamReader reader, String name)protected StringgetNonEmptyAttribute(XMLStreamReader reader, String name)protected QNamegetQNameAttribute(XMLStreamReader reader, String name)protected ClassloadClass(String name)List<A>parse(File f)Parses thesun-jaxws.xmlfile and configures a set ofEndpointAdapters.List<A>parse(String systemId, InputStream is)Parses thesun-jaxws.xmlfile and configures a set ofEndpointAdapters.
-
-
-
Field Detail
-
NS_RUNTIME
public static final String NS_RUNTIME
- See Also:
- Constant Field Values
-
JAXWS_WSDL_DD_DIR
public static final String JAXWS_WSDL_DD_DIR
- See Also:
- Constant Field Values
-
QNAME_ENDPOINTS
public static final QName QNAME_ENDPOINTS
-
QNAME_ENDPOINT
public static final QName QNAME_ENDPOINT
-
ATTR_VERSION
public static final String ATTR_VERSION
- See Also:
- Constant Field Values
-
ATTR_NAME
public static final String ATTR_NAME
- See Also:
- Constant Field Values
-
ATTR_IMPLEMENTATION
public static final String ATTR_IMPLEMENTATION
- See Also:
- Constant Field Values
-
ATTR_WSDL
public static final String ATTR_WSDL
- See Also:
- Constant Field Values
-
ATTR_SERVICE
public static final String ATTR_SERVICE
- See Also:
- Constant Field Values
-
ATTR_PORT
public static final String ATTR_PORT
- See Also:
- Constant Field Values
-
ATTR_URL_PATTERN
public static final String ATTR_URL_PATTERN
- See Also:
- Constant Field Values
-
ATTR_ENABLE_MTOM
public static final String ATTR_ENABLE_MTOM
- See Also:
- Constant Field Values
-
ATTR_MTOM_THRESHOLD_VALUE
public static final String ATTR_MTOM_THRESHOLD_VALUE
- See Also:
- Constant Field Values
-
ATTR_BINDING
public static final String ATTR_BINDING
- See Also:
- Constant Field Values
-
ATTRVALUE_VERSION_1_0
public static final String ATTRVALUE_VERSION_1_0
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DeploymentDescriptorParser
public DeploymentDescriptorParser(ClassLoader cl, ResourceLoader loader, DeploymentDescriptorParser.AdapterFactory<A> adapterFactory) throws IOException
- Parameters:
cl- Used to load service implementations.loader- Used to locate resources, in particular WSDL.adapterFactory- CreatesEndpointAdapter(or its derived class.)- Throws:
IOException
-
-
Method Detail
-
parse
public List<A> parse(String systemId, InputStream is)
Parses thesun-jaxws.xmlfile and configures a set ofEndpointAdapters.
-
parse
public List<A> parse(File f) throws IOException
Parses thesun-jaxws.xmlfile and configures a set ofEndpointAdapters.- Throws:
IOException
-
getAttribute
protected String getAttribute(XMLStreamReader reader, String name)
-
getQNameAttribute
protected QName getQNameAttribute(XMLStreamReader reader, String name)
-
getNonEmptyAttribute
protected String getNonEmptyAttribute(XMLStreamReader reader, String name)
-
getMandatoryAttribute
protected String getMandatoryAttribute(XMLStreamReader reader, String name)
-
getMandatoryNonEmptyAttribute
protected String getMandatoryNonEmptyAttribute(XMLStreamReader reader, String name)
-
ensureNoContent
protected static void ensureNoContent(XMLStreamReader reader)
-
fail
protected static void fail(String key, XMLStreamReader reader)
-
failWithFullName
protected static void failWithFullName(String key, XMLStreamReader reader)
-
failWithLocalName
protected static void failWithLocalName(String key, XMLStreamReader reader)
-
failWithLocalName
protected static void failWithLocalName(String key, XMLStreamReader reader, String arg)
-
-