public class InitParams extends Object implements Iterable<InitParams.InitParam>
Init params are specified with the init-param attribute in the servlet
element of the org.eclipse.equinox.http.registry.servlets
extension point.
Modifier and Type | Class and Description |
---|---|
static class |
InitParams.InitParam
Init params are name/value pairs
|
Modifier and Type | Field and Description |
---|---|
static String |
ALIAS_INITPARAM
Name of the servlet init-param that specifies aggregator aliases within the servlet
|
static String |
CONFIG_INITPARAM
Name of the servlet init-param that specifies the URI to the server side
AMD config JSON.
|
static String |
MAXLAYERCACHECAPACITY_MB_INITPARAM
Name of the servlet init-param that specifies the maximum capacity of
the layer cache in megabytes.
|
static String |
MODULEBUILDERS_INITPARAM
Name of the servlet init-param that specifies the name of the
modulebuilder plugin extension(s) used by this servlet.
|
static String |
OPTIONS_INITPARAM
Name of the servlet init-param that specifies the filename of the java properties
file containing the aggregator options (see
IOptions ). |
static String |
RESOURCECONVERTERS_INITPARAM
Name of the servlet init-param that specifies the name of the
resourceconverter plugin extension(s) used by this servlet.
|
static String |
RESOURCEFACTORIES_INITPARAM
Name of the servlet init-param that specifies the name of the
resourcefactory plugin extension(s) used by this servlet.
|
static String |
RESOURCEID_INITPARAM
Name of the servlet init-param that specifies resource ids.
|
static String |
SERVICEPROVIDERS_INITPARAM
Name of the servlet init-param that specifies the name of the service provider extension(s)
used by this servlet.
|
static String |
TRANSPORT_INITPARAM
Name of the servlet init-param that specifies the name of the
httptransport plugin extension used by this servlet.
|
Constructor and Description |
---|
InitParams(List<InitParams.InitParam> initParams)
Constructor from a
List |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getNames()
Returns a collection of the init-param names, or an empty collection
if there are no init-params
|
String |
getValue(String name)
Returns the value of the first instance of the named init-param, or
null if the init-param is not found.
|
List<String> |
getValues(String name)
Returns a list of the values for the init-param(s) with the
specified name, or an empty collection if there are no init-params with
the specified name.
|
Iterator<InitParams.InitParam> |
iterator() |
String |
toString() |
public static final String TRANSPORT_INITPARAM
IHttpTransport
,
Constant Field Valuespublic static final String MODULEBUILDERS_INITPARAM
public static final String RESOURCEFACTORIES_INITPARAM
public static final String RESOURCECONVERTERS_INITPARAM
public static final String SERVICEPROVIDERS_INITPARAM
Service provider extensions are generally used to register OSGi services such as config variable resolvers, etc.
public static final String CONFIG_INITPARAM
public static final String OPTIONS_INITPARAM
IOptions
). If not
specified, then the aggregator will look for options properties in the file
aggregator.properties in the home directory of the user that started the
aggregator.public static final String MAXLAYERCACHECAPACITY_MB_INITPARAM
public static final String ALIAS_INITPARAM
public static final String RESOURCEID_INITPARAM
<init-param name="resource-id" value="foores"/> <init-param name="foores:alias" value="foo"/> <init-param name="foores:base-name" value="foopath"/>
public InitParams(List<InitParams.InitParam> initParams)
List
initParams
- public List<String> getValues(String name)
name
- the init-param namepublic String getValue(String name)
name
- the init-param namepublic Collection<String> getNames()
public Iterator<InitParams.InitParam> iterator()
iterator
in interface Iterable<InitParams.InitParam>
Copyright © 2011-2015 IBM. All Rights Reserved.