public class FabricServletHost
extends javax.servlet.http.HttpServlet
implements org.fabric3.spi.host.ServletHost
| Constructor and Description |
|---|
FabricServletHost(int http,
int https,
java.net.URL baseUrl,
java.net.URL baseHttpsUrl,
java.lang.String contextPath) |
| Modifier and Type | Method and Description |
|---|---|
java.net.URL |
getBaseHttpsUrl() |
java.net.URL |
getBaseHttpUrl() |
java.lang.String |
getContextPath() |
java.lang.String |
getHostType() |
int |
getHttpPort() |
int |
getHttpsPort() |
void |
init(javax.servlet.ServletConfig config) |
boolean |
isHttpsEnabled() |
boolean |
isMappingRegistered(java.lang.String mapping) |
void |
registerMapping(java.lang.String path,
javax.servlet.Servlet servlet) |
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
javax.servlet.Servlet |
unregisterMapping(java.lang.String path) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicepublic FabricServletHost(int http,
int https,
java.net.URL baseUrl,
java.net.URL baseHttpsUrl,
java.lang.String contextPath)
public java.lang.String getHostType()
getHostType in interface org.fabric3.spi.host.ServletHostpublic int getHttpPort()
getHttpPort in interface org.fabric3.spi.host.ServletHostpublic int getHttpsPort()
getHttpsPort in interface org.fabric3.spi.host.ServletHostpublic java.net.URL getBaseHttpUrl()
getBaseHttpUrl in interface org.fabric3.spi.host.ServletHostpublic java.net.URL getBaseHttpsUrl()
getBaseHttpsUrl in interface org.fabric3.spi.host.ServletHostpublic boolean isHttpsEnabled()
isHttpsEnabled in interface org.fabric3.spi.host.ServletHostpublic java.lang.String getContextPath()
getContextPath in interface org.fabric3.spi.host.ServletHostpublic void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionpublic void registerMapping(java.lang.String path,
javax.servlet.Servlet servlet)
registerMapping in interface org.fabric3.spi.host.ServletHostpublic boolean isMappingRegistered(java.lang.String mapping)
isMappingRegistered in interface org.fabric3.spi.host.ServletHostpublic javax.servlet.Servlet unregisterMapping(java.lang.String path)
unregisterMapping in interface org.fabric3.spi.host.ServletHost