public class ServletServerHttpConnection extends Object implements net.officefloor.plugin.socket.server.http.ServerHttpConnection
ServerHttpConnection backed by Servlet.| Constructor and Description |
|---|
ServletServerHttpConnection(HttpServletRequest servletRequest,
HttpServletResponse servletResponse)
Initiate.
|
| Modifier and Type | Method and Description |
|---|---|
Serializable |
exportState() |
String |
getHttpMethod() |
net.officefloor.plugin.socket.server.http.HttpRequest |
getHttpRequest() |
net.officefloor.plugin.socket.server.http.HttpResponse |
getHttpResponse() |
InetSocketAddress |
getLocalAddress() |
InetSocketAddress |
getRemoteAddress() |
void |
importState(Serializable momento) |
boolean |
isSecure() |
public ServletServerHttpConnection(HttpServletRequest servletRequest, HttpServletResponse servletResponse)
servletRequest - HttpServletRequest.servletResponse - HttpServletResponse.public boolean isSecure()
isSecure in interface net.officefloor.plugin.socket.server.http.ServerHttpConnectionpublic InetSocketAddress getLocalAddress()
getLocalAddress in interface net.officefloor.plugin.socket.server.http.ServerHttpConnectionpublic InetSocketAddress getRemoteAddress()
getRemoteAddress in interface net.officefloor.plugin.socket.server.http.ServerHttpConnectionpublic net.officefloor.plugin.socket.server.http.HttpRequest getHttpRequest()
getHttpRequest in interface net.officefloor.plugin.socket.server.http.ServerHttpConnectionpublic net.officefloor.plugin.socket.server.http.HttpResponse getHttpResponse()
getHttpResponse in interface net.officefloor.plugin.socket.server.http.ServerHttpConnectionpublic String getHttpMethod()
getHttpMethod in interface net.officefloor.plugin.socket.server.http.ServerHttpConnectionpublic Serializable exportState() throws IOException
exportState in interface net.officefloor.plugin.socket.server.http.ServerHttpConnectionIOExceptionpublic void importState(Serializable momento) throws IllegalArgumentException, IOException
importState in interface net.officefloor.plugin.socket.server.http.ServerHttpConnectionIllegalArgumentExceptionIOExceptionCopyright © 2005–2015. All rights reserved.