public class WebComponent extends Object
Constructor and Description |
---|
WebComponent(WebConfig webConfig,
ResourceConfig resourceConfig)
Create and initialize new web component instance.
|
Modifier and Type | Method and Description |
---|---|
ApplicationHandler |
getAppHandler()
Get
ApplicationHandler used by this web component. |
org.glassfish.jersey.internal.util.collection.Value<Integer> |
service(URI baseUri,
URI requestUri,
javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
Dispatch client requests to a resource class.
|
public WebComponent(WebConfig webConfig, ResourceConfig resourceConfig) throws javax.servlet.ServletException
webConfig
- we component configuration.resourceConfig
- Jersey application configuration.javax.servlet.ServletException
- in case the Jersey application cannot be created from the supplied
resource configuration.public org.glassfish.jersey.internal.util.collection.Value<Integer> service(URI baseUri, URI requestUri, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws javax.servlet.ServletException, IOException
baseUri
- the base URI of the request.requestUri
- the URI of the request.servletRequest
- the HttpServletRequest
object that
contains the request the client made to
the Web component.servletResponse
- the HttpServletResponse
object that
contains the response the Web component returns
to the client.value provider
. If not resolved in the moment of call to
Value.get()
, -1
is returned.IOException
- if an input or output error occurs
while the Web component is handling the
HTTP request.javax.servlet.ServletException
- if the HTTP request cannot be handled.public ApplicationHandler getAppHandler()
ApplicationHandler
used by this web component.Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.