|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.plugin.servlet.container.HttpServletContainerImpl
public class HttpServletContainerImpl
HttpServletContainer implementation.
| Constructor Summary | |
|---|---|
HttpServletContainerImpl(String servletName,
javax.servlet.http.HttpServlet servlet,
Map<String,String> initParameters,
OfficeServletContext officeServletContext,
Office office,
Clock clock,
Locale defaultLocale)
Initiate. |
|
| Method Summary | |
|---|---|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
|
String[] |
getServletMappings()
Obtains the mappings that are handled by this HttpServletServicer. |
String |
getServletName()
Obtains the name of this HttpServletServicer. |
void |
include(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Includes the servicing of contained HttpServlet on the inputs. |
void |
include(OfficeServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Includes the content from this HttpServlet. |
void |
service(ServerHttpConnection connection,
Map<String,Object> attributes,
HttpSession session,
HttpSecurity security,
TaskContext<?,?,?> taskContext,
ServicerMapping mapping)
Services the HttpRequest of the ServerHttpConnection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpServletContainerImpl(String servletName,
javax.servlet.http.HttpServlet servlet,
Map<String,String> initParameters,
OfficeServletContext officeServletContext,
Office office,
Clock clock,
Locale defaultLocale)
throws javax.servlet.ServletException
servletName - Name of the Servlet.servlet - HttpServlet.initParameters - Init parameters for the ServletConfig.officeServletContext - OfficeServletContext.office - Office.clock - Clock.defaultLocale - Default Locale.
javax.servlet.ServletException - If fails to initialise the HttpServlet.| Method Detail |
|---|
public void service(ServerHttpConnection connection,
Map<String,Object> attributes,
HttpSession session,
HttpSecurity security,
TaskContext<?,?,?> taskContext,
ServicerMapping mapping)
throws javax.servlet.ServletException,
IOException
HttpServletContainerHttpRequest of the ServerHttpConnection.
service in interface HttpServletContainerconnection - ServerHttpConnection containing the
HttpRequest to service.attributes - Attributes in HttpRequest context.session - HttpSession for the HttpRequest.security - HttpSecurity. May be null if anonymous
HttpRequest.taskContext - TaskContext to allow access to OfficeFloor
capabilities.mapping - ServicerMapping that mapped the HttpRequest to
the HttpServlet. May be null if not
mapped.
javax.servlet.ServletException - As per HttpServlet API.
IOException - As per HttpServlet API.
public void include(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
HttpServletContainerHttpServlet on the inputs.
include in interface HttpServletContainerrequest - HttpServletRequest.response - HttpServletResponse.
javax.servlet.ServletException - As per HttpServlet API.
IOException - As per HttpServlet API.public String getServletName()
HttpServletServicer
Obtains the name of this HttpServletServicer.
This will be used to find this HttpServletServicer by name.
getServletName in interface HttpServletServicerHttpServletServicer name.public String[] getServletMappings()
HttpServletServicer
Obtains the mappings that are handled by this HttpServletServicer.
The mappings are of the form:
/some/path.extension: for exact mapping (extension is
optional)/wild/card/*: for path wild card mapping*.extension: for extension mapping
This follows the Servlet specification in regards to mappings.
getServletMappings in interface HttpServletServicerHttpServletServicer.ServicerMapper
public void include(OfficeServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
HttpServletServicerHttpServlet.
include in interface HttpServletServicercontext - OfficeServletContext.request - HttpServletRequest.response - HttpServletResponse.
javax.servlet.ServletException - As per RequestDispatcher.
IOException - As per RequestDispatcher.
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterChainIOException
javax.servlet.ServletException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||