Package org.opendaylight.aaa.web
Interface ServletDetails
public interface ServletDetails
Details about a
Servlet.- Author:
- Michael Vorburger.ch
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet indication whetherservlet()supports asynchronous processing.static @NonNull ServletDetails.Builderbuilder()Create a builder forServletDetails.Get Servlet initial parameters.@NonNull Stringname()Get Servlet's name.@NonNull javax.servlet.Servletservlet()Get aServletinstance.Get list of servlet URL patterns.
-
Method Details
-
servlet
@NonNull javax.servlet.Servlet servlet()Get aServletinstance.- Returns:
Servletinstance
-
name
@NonNull String name()Get Servlet's name.- Returns:
Stringservlet name
-
urlPatterns
Get list of servlet URL patterns. These patterns control how you access a servlet.Restrictions to URLs and how it should look like are next:
- A string beginning with a ‘ / ’ character and ending with a ‘ /*’ suffix is used for path mapping.
- A string beginning with a ‘ *. ’ prefix is used as an extension mapping.
- The empty string ("") is a special URL pattern that exactly maps to the application's context root, i.e.,
requests of the form
http://host:port/context-root. In this case the path info is ’ / ’ and the servlet path and context path is empty string (““). - A string containing only the ’ / ’ character indicates the "default" servlet of the application. In this case the servlet path is the request URI minus the context path and the path info is null.
- All other strings are used for exact matches only.
- Returns:
Listof Servlet URL patterns- See Also:
-
- "Java Servlet Specification Version 3.1, Section 12.2 Specification of Mappings"
-
initParams
Get Servlet initial parameters.- Returns:
Mapthat contains initial parameters
-
asyncSupported
boolean asyncSupported()Get indication whetherservlet()supports asynchronous processing.- Returns:
trueif the filter supports asynchronous processing- See Also:
-
- "Java Servlet Specification Version 3.1, Section 2.3.3.3 Asynchronous Processing"
-
builder
Create a builder forServletDetails.- Returns:
ServletDetails.Builderbuilder instance
-