public interface ServletHost
| Modifier and Type | Method and Description |
|---|---|
java.net.URL |
getBaseHttpsUrl()
Returns the base HTTP url of the servlet container.
|
java.net.URL |
getBaseHttpUrl()
Returns the base HTTP url of the servlet container.
|
default java.lang.String |
getContextPath()
Returns the servlet context path this host is registered under in the runtime.
|
java.lang.String |
getHostType()
Returns the servlet host type, typically the container name.
|
int |
getHttpPort()
Returns the runtime HTTP.
|
int |
getHttpsPort()
Returns the runtime HTTPS port.
|
boolean |
isHttpsEnabled()
True if HTTPS is enabled.
|
boolean |
isMappingRegistered(java.lang.String mapping)
Check to see if a mapping exists.
|
void |
registerMapping(java.lang.String mapping,
javax.servlet.Servlet servlet)
Register a mapping for an instance of a Servlet.
|
javax.servlet.Servlet |
unregisterMapping(java.lang.String mapping)
Unregister a servlet mapping.
|
java.lang.String getHostType()
int getHttpPort()
int getHttpsPort()
java.net.URL getBaseHttpUrl()
java.net.URL getBaseHttpsUrl()
boolean isHttpsEnabled()
void registerMapping(java.lang.String mapping,
javax.servlet.Servlet servlet)
mapping - the uri-mapping for the Servletservlet - the Servlet that should be invokedjavax.servlet.Servlet unregisterMapping(java.lang.String mapping)
mapping - the uri-mapping for the Servletboolean isMappingRegistered(java.lang.String mapping)
mapping - the uri-mapping for the Servletdefault java.lang.String getContextPath()