Package org.glassfish.jersey.servlet
Interface WebConfig
-
- All Known Implementing Classes:
WebFilterConfig,WebServletConfig
public interface WebConfigThe Web configuration for accessing initialization parameters of a Web component and theServletContext.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classWebConfig.ConfigTypeThe web configuration type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WebConfig.ConfigTypegetConfigType()Get the configuration type of this config.javax.servlet.FilterConfiggetFilterConfig()Get the corresponding FilterConfig if this WebConfig represents aFilterConfigjava.lang.StringgetInitParameter(java.lang.String name)Get an initialization parameter.java.util.EnumerationgetInitParameterNames()Get the enumeration of initialization parameter names.java.lang.StringgetName()Get the name of the Web component.javax.servlet.ServletConfiggetServletConfig()Get the corresponding ServletConfig if this WebConfig represents aServletConfigjavax.servlet.ServletContextgetServletContext()Get theServletContext.
-
-
-
Method Detail
-
getConfigType
WebConfig.ConfigType getConfigType()
Get the configuration type of this config.- Returns:
- the configuration type.
-
getServletConfig
javax.servlet.ServletConfig getServletConfig()
Get the corresponding ServletConfig if this WebConfig represents aServletConfig- Returns:
- servlet config or null
-
getFilterConfig
javax.servlet.FilterConfig getFilterConfig()
Get the corresponding FilterConfig if this WebConfig represents aFilterConfig- Returns:
- filter config or null
-
getName
java.lang.String getName()
Get the name of the Web component.- Returns:
- the name of the Web component.
-
getInitParameter
java.lang.String getInitParameter(java.lang.String name)
Get an initialization parameter.- Parameters:
name- the parameter name.- Returns:
- the parameter value, or null if the parameter is not present.
-
getInitParameterNames
java.util.Enumeration getInitParameterNames()
Get the enumeration of initialization parameter names.- Returns:
- the enumeration of initialization parameter names.
-
getServletContext
javax.servlet.ServletContext getServletContext()
Get theServletContext.- Returns:
- the
ServletContext.
-
-