org.glassfish.jersey.servlet
Class WebFilterConfig

java.lang.Object
  extended by org.glassfish.jersey.servlet.WebFilterConfig
All Implemented Interfaces:
WebConfig

public class WebFilterConfig
extends Object
implements WebConfig

A filter based web config. Delegates all invocations to the filter configuration from the servlet api.

Author:
Paul Sandoz, Guilherme Silveira

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.glassfish.jersey.servlet.WebConfig
WebConfig.ConfigType
 
Constructor Summary
WebFilterConfig(javax.servlet.FilterConfig filterConfig)
           
 
Method Summary
 WebConfig.ConfigType getConfigType()
          Get the configuration type of this config.
 javax.servlet.FilterConfig getFilterConfig()
          Get the corresponding FilterConfig if this WebConfig represents a FilterConfig
 String getInitParameter(String name)
          Get an initialization parameter.
 Enumeration getInitParameterNames()
          Get the enumeration of initialization parameter names.
 String getName()
          Get the name of the Web component.
 javax.servlet.ServletConfig getServletConfig()
          Get the corresponding ServletConfig if this WebConfig represents a ServletConfig
 javax.servlet.ServletContext getServletContext()
          Get the ServletContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebFilterConfig

public WebFilterConfig(javax.servlet.FilterConfig filterConfig)
Method Detail

getConfigType

public WebConfig.ConfigType getConfigType()
Description copied from interface: WebConfig
Get the configuration type of this config.

Specified by:
getConfigType in interface WebConfig
Returns:
the configuration type.

getServletConfig

public javax.servlet.ServletConfig getServletConfig()
Description copied from interface: WebConfig
Get the corresponding ServletConfig if this WebConfig represents a ServletConfig

Specified by:
getServletConfig in interface WebConfig
Returns:
servlet config or null

getFilterConfig

public javax.servlet.FilterConfig getFilterConfig()
Description copied from interface: WebConfig
Get the corresponding FilterConfig if this WebConfig represents a FilterConfig

Specified by:
getFilterConfig in interface WebConfig
Returns:
filter config or null

getName

public String getName()
Description copied from interface: WebConfig
Get the name of the Web component.

Specified by:
getName in interface WebConfig
Returns:
the name of the Web component.

getInitParameter

public String getInitParameter(String name)
Description copied from interface: WebConfig
Get an initialization parameter.

Specified by:
getInitParameter in interface WebConfig
Parameters:
name - the parameter name.
Returns:
the parameter value, or null if the parameter is not present.

getInitParameterNames

public Enumeration getInitParameterNames()
Description copied from interface: WebConfig
Get the enumeration of initialization parameter names.

Specified by:
getInitParameterNames in interface WebConfig
Returns:
the enumeration of initialization parameter names.

getServletContext

public javax.servlet.ServletContext getServletContext()
Description copied from interface: WebConfig
Get the ServletContext.

Specified by:
getServletContext in interface WebConfig
Returns:
the ServletContext.


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.