org.richfaces.webapp

## Class ServletConfigDefaultsFacade

- java.lang.Object
- - org.richfaces.webapp.ServletConfigDefaultsFacade

- All Implemented Interfaces:
    javax.servlet.ServletConfig

      public final class ServletConfigDefaultsFacade
      extends Object
      implements javax.servlet.ServletConfig

  Forms a facade for `ServletContext` that can hold map of default configuration used in case no other configuration provided.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ServletConfigDefaultsFacade(javax.servlet.ServletConfig config, Map<String,String> defaults)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getInitParameter(String name)`
    `Enumeration` | `getInitParameterNames()`
    `javax.servlet.ServletContext` | `getServletContext()`
    `String` | `getServletName()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ServletConfigDefaultsFacade

          public ServletConfigDefaultsFacade(javax.servlet.ServletConfig config,
                                     Map<String,String> defaults)

  - ### Method Detail

    - #### getServletName

          public String getServletName()

      Specified by:
        `getServletName` in interface `javax.servlet.ServletConfig`

    - #### getServletContext

          public javax.servlet.ServletContext getServletContext()

      Specified by:
        `getServletContext` in interface `javax.servlet.ServletConfig`

    - #### getInitParameter

          public String getInitParameter(String name)

      Specified by:
        `getInitParameter` in interface `javax.servlet.ServletConfig`

    - #### getInitParameterNames

          public Enumeration getInitParameterNames()

      Specified by:
        `getInitParameterNames` in interface `javax.servlet.ServletConfig`

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.