Top Description Fields Constructors Methods
org.glassfish.grizzly.jaxws

public Class JaxwsHandler

extends HttpHandler
Class Inheritance
Imports
java.io.IOException, java.net.URL, java.util.ArrayList, .List, .Map, java.util.concurrent.TimeUnit, java.util.logging.Level, .Logger, javax.xml.namespace.QName, javax.xml.parsers.ParserConfigurationException, javax.xml.transform.Source, .TransformerException, org.glassfish.grizzly.EmptyCompletionHandler, .Grizzly, org.glassfish.grizzly.http.Method, org.glassfish.grizzly.http.server.HttpHandler, .Request, .Response, org.xml.sax.EntityResolver, .SAXException, com.sun.istack.Nullable, com.sun.xml.stream.buffer.XMLStreamBufferResult, com.sun.xml.ws.api.BindingID, com.sun.xml.ws.api.server.InstanceResolver, com.sun.xml.ws.api.server.SDDocumentSource, com.sun.xml.ws.api.server.WSEndpoint, com.sun.xml.ws.binding.BindingImpl, com.sun.xml.ws.server.EndpointFactory, com.sun.xml.ws.server.ServerRtException, com.sun.xml.ws.transport.http.HttpAdapter, com.sun.xml.ws.transport.http.WSHTTPConnection, com.sun.xml.ws.util.xml.XmlUtil, jakarta.xml.ws.Endpoint

JAX-WS HttpHandler implementation.
Authors
Alexey Stashok, JAX-WS team

Field Summary

Modifier and TypeField and Description
private com.sun.xml.ws.api.server.WSEndpoint
private com.sun.xml.ws.transport.http.HttpAdapter
private final Object
private final boolean
private static final Logger
private final List<Source>
private final Map<String, Object>
private volatile long

Constructor Summary

AccessConstructor and Description
public
JaxwsHandler(final Object
WebService implementation.
implementor
)

Create JaxwsHandler based on WebService implementation class, which will operate in synchronous mode.

public
JaxwsHandler(final Object
WebService implementation class.
implementor
,
final boolean
if true the handler will execute WebService in asynchronous mode, otherwise synchronous.
isAsync
)

Create JaxwsHandler based on WebService implementation class.

public
JaxwsHandler(final Object
WebService implementation class.
implementor
,
final boolean
if true the handler will execute WebService in asynchronous mode, otherwise synchronous.
isAsync
,
final List<Source>
Other documents that become com.sun.xml.ws.api.server.SDDocuments. Can be null.
metadata
,
final Map<String, Object>
extra properties to be used, when constructing WebService WSEndpoint.
properties
)

Create JaxwsHandler based on WebService implementation class.

public
JaxwsHandler(final com.sun.xml.ws.api.server.WSEndpoint endpoint)

Create JaxwsHandler based on WSEndpoint, which will operate in synchronous mode.

public
JaxwsHandler(final com.sun.xml.ws.api.server.WSEndpoint endpoint, final boolean
if true the handler will execute WebService in asynchronous mode, otherwise synchronous.
isAsync
)

Create JaxwsHandler based on WSEndpoint, which will operate in synchronous mode.

Method Summary

Modifier and TypeMethod and Description
private List<com.sun.xml.ws.api.server.SDDocumentSource>
buildDocList()

Convert metadata sources using identity transform.

public long
getAsyncTimeout(final TimeUnit timeUnit)

private com.sun.xml.ws.api.server.SDDocumentSource
getPrimaryWsdl(final Object implementor)

Gets WSDL from @WebService or @WebServiceProvider

private <T> T
getProperty(Class<T> type, String key)

public boolean
private boolean

Returns:

true for metadata requests false for web service requests
isMetadataQuery
(String
String like "xsd=1" or "perhaps=some&unrelated=query". Can be null.
query
)

Returns true if the given query string is for metadata request.

public void
service(Request
incoming HTTP request
req
,
Response
HTTP response to prepare
res
)

Implements abstract org.glassfish.grizzly.http.server.HttpHandler.service.

Main entry point of the HttpHandler to service a request

public void
setAsyncTimeout(final long timeout, final TimeUnit timeUnit)

public void
start()

Overrides org.glassfish.grizzly.http.server.HttpHandler.start.

Called when the HttpHandler's container is started by invoking HttpServer#start.

Inherited from org.glassfish.grizzly.http.server.HttpHandler:
destroygetErrorPageGeneratorgetNamegetRequestExecutorProvidergetRequestURIEncodinggetSessionCookieNamegetSessionManagerisAllowCustomStatusMessageisAllowEncodedSlashsendAcknowledgmentsetAllowCustomStatusMessagesetAllowEncodedSlashsetDecodeUrlsetDispatcherHelpersetRequestURIEncodingsetRequestURIEncodingupdatePaths

Field Detail

endpointback to summary
private com.sun.xml.ws.api.server.WSEndpoint endpoint
httpAdapterback to summary
private com.sun.xml.ws.transport.http.HttpAdapter httpAdapter
implementorback to summary
private final Object implementor
isAsyncback to summary
private final boolean isAsync
LOGGERback to summary
private static final Logger LOGGER

Hides org.glassfish.grizzly.http.server.HttpHandler.LOGGER.

metadataback to summary
private final List<Source> metadata
propertiesback to summary
private final Map<String, Object> properties
timeoutMillisback to summary
private volatile long timeoutMillis

Constructor Detail

JaxwsHandlerback to summary
public JaxwsHandler(final Object implementor)

Create JaxwsHandler based on WebService implementation class, which will operate in synchronous mode.

Parameters
implementor:Object

WebService implementation.

JaxwsHandlerback to summary
public JaxwsHandler(final Object implementor, final boolean isAsync)

Create JaxwsHandler based on WebService implementation class.

Parameters
implementor:Object

WebService implementation class.

isAsync:boolean

if true the handler will execute WebService in asynchronous mode, otherwise synchronous.

JaxwsHandlerback to summary
public JaxwsHandler(final Object implementor, final boolean isAsync, final List<Source> metadata, final Map<String, Object> properties)

Create JaxwsHandler based on WebService implementation class.

Parameters
implementor:Object

WebService implementation class.

isAsync:boolean

if true the handler will execute WebService in asynchronous mode, otherwise synchronous.

metadata:List<Source>

Other documents that become com.sun.xml.ws.api.server.SDDocuments. Can be null.

properties:Map<String, Object>

extra properties to be used, when constructing WebService WSEndpoint.

JaxwsHandlerback to summary
public JaxwsHandler(final com.sun.xml.ws.api.server.WSEndpoint endpoint)

Create JaxwsHandler based on WSEndpoint, which will operate in synchronous mode.

Parameters
endpoint:com.sun.xml.ws.api.server.WSEndpoint

WSEndpoint.

JaxwsHandlerback to summary
public JaxwsHandler(final com.sun.xml.ws.api.server.WSEndpoint endpoint, final boolean isAsync)

Create JaxwsHandler based on WSEndpoint, which will operate in synchronous mode.

Parameters
endpoint:com.sun.xml.ws.api.server.WSEndpoint

WSEndpoint.

isAsync:boolean

if true the handler will execute WebService in asynchronous mode, otherwise synchronous.

Method Detail

buildDocListback to summary
private List<com.sun.xml.ws.api.server.SDDocumentSource> buildDocList()

Convert metadata sources using identity transform. So that we can reuse the Source object multiple times.

getAsyncTimeoutback to summary
public long getAsyncTimeout(final TimeUnit timeUnit)
getPrimaryWsdlback to summary
private com.sun.xml.ws.api.server.SDDocumentSource getPrimaryWsdl(final Object implementor)

Gets WSDL from @WebService or @WebServiceProvider

Annotations
@Nullable
getPropertyback to summary
private <T> T getProperty(Class<T> type, String key)
isAsyncback to summary
public boolean isAsync()
isMetadataQueryback to summary
private boolean isMetadataQuery(String query)

Returns true if the given query string is for metadata request.

Parameters
query:String

String like "xsd=1" or "perhaps=some&unrelated=query". Can be null.

Returns:boolean

true for metadata requests false for web service requests

serviceback to summary
public void service(Request req, Response res) throws Exception

Implements abstract org.glassfish.grizzly.http.server.HttpHandler.service.

Main entry point of the HttpHandler to service a request

Parameters
req:Request

incoming HTTP request

res:Response

HTTP response to prepare

Annotations
@Override
setAsyncTimeoutback to summary
public void setAsyncTimeout(final long timeout, final TimeUnit timeUnit)
startback to summary
public void start()

Overrides org.glassfish.grizzly.http.server.HttpHandler.start.

Doc from org.glassfish.grizzly.http.server.HttpHandler.start.

Called when the HttpHandler's container is started by invoking HttpServer#start. By default, it does nothing.

Annotations
@Override