public class HttpBindServlet
extends javax.servlet.http.HttpServlet
HttpSession
related to the connection or if one needs to be created and then passes it
off to the HttpBindManager
for processing of the client request and formulating of the
response.Constructor and Description |
---|
HttpBindServlet() |
Modifier and Type | Method and Description |
---|---|
protected static String |
createErrorBody(String type,
String condition) |
protected void |
createNewSession(javax.servlet.AsyncContext context,
org.dom4j.Element rootNode) |
void |
destroy() |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected static int |
getIntAttribute(String value,
int defaultValue) |
protected static long |
getLongAttribute(String value,
long defaultValue) |
protected static String |
getRemoteAddress(javax.servlet.AsyncContext context) |
void |
init(javax.servlet.ServletConfig servletConfig) |
protected void |
processContent(javax.servlet.AsyncContext context,
String content) |
static void |
respond(HttpSession session,
javax.servlet.AsyncContext context,
String content,
boolean async) |
protected static void |
sendLegacyError(javax.servlet.AsyncContext context,
BoshBindingError error) |
protected static void |
sendLegacyError(javax.servlet.AsyncContext context,
BoshBindingError error,
String message) |
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
public void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void processContent(javax.servlet.AsyncContext context, String content) throws IOException
IOException
protected void createNewSession(javax.servlet.AsyncContext context, org.dom4j.Element rootNode) throws IOException
IOException
public static void respond(HttpSession session, javax.servlet.AsyncContext context, String content, boolean async) throws IOException
IOException
protected static void sendLegacyError(javax.servlet.AsyncContext context, BoshBindingError error, String message) throws IOException
IOException
protected static void sendLegacyError(javax.servlet.AsyncContext context, BoshBindingError error) throws IOException
IOException
protected static long getLongAttribute(String value, long defaultValue)
protected static int getIntAttribute(String value, int defaultValue)
protected static String getRemoteAddress(javax.servlet.AsyncContext context)
Copyright © 2003-2008 Jive Software.