public enum ServletRoutingBase extends Enum<ServletRoutingBase>
HttpApplication.
Configured by Servlet init-param of
HttpFrameworkServlet.ROUTING_BASE_INIT_PARAM_NAME.
By default, if no servlet init-param is set, SERVLET_PATH will
be used, meaning that the HttpApplication will be given requests
which DO NOT contain any information about the web application
configuration.
When CONTEXT_PATH is selected the HttpApplication will be
given requests which DO contain the relative Servlet context path and
therefore will be dependant on the web application configuration.
| Enum Constant and Description |
|---|
CONTEXT_PATH
Only the context path will be consumed when routing requests to the
HttpApplication. |
SERVLET_PATH
Both the context path and the servlet path will be consumed when routing
requests to the
HttpApplication. |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
extractMatchedUri(javax.servlet.http.HttpServletRequest request)
Determines the portion of the request URI that will be matched based on
the selected
ServletRoutingBase. |
static ServletRoutingBase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServletRoutingBase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServletRoutingBase CONTEXT_PATH
HttpApplication.public static final ServletRoutingBase SERVLET_PATH
HttpApplication.public static ServletRoutingBase[] values()
for (ServletRoutingBase c : ServletRoutingBase.values()) System.out.println(c);
public static ServletRoutingBase valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract String extractMatchedUri(javax.servlet.http.HttpServletRequest request)
ServletRoutingBase.request - The request.Copyright © 2025 Open Identity Platform Community. All rights reserved.