public class JettyHTTPD extends AbstractHTTPD
Modifier and Type | Class and Description |
---|---|
class |
JettyHTTPD.AuthenticationHandler |
class |
JettyHTTPD.ExtensionHandler1 |
class |
JettyHTTPD.GateHandler |
class |
JettyHTTPD.LoginHandler |
_ip, _port, _server
Constructor and Description |
---|
JettyHTTPD()
Create bare Jetty object.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptRequests() |
static void |
endTransaction() |
static java.io.InputStream |
extractPartInputStream(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected java.lang.RuntimeException |
failEx(java.lang.String message) |
static java.lang.String |
getDecodedUri(javax.servlet.http.HttpServletRequest request) |
protected static long |
getStartMillis() |
static java.lang.String |
getUserAgent() |
protected void |
handle1(java.lang.String target,
org.eclipse.jetty.server.Request baseRequest,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static void |
logRequest(java.lang.String method,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
registerHandlers(org.eclipse.jetty.server.handler.HandlerWrapper handlerWrapper,
org.eclipse.jetty.servlet.ServletContextHandler context) |
static void |
sendErrorResponse(javax.servlet.http.HttpServletResponse response,
java.lang.Exception e,
java.lang.String uri) |
static void |
sendResponseError(javax.servlet.http.HttpServletResponse response,
int sc,
java.lang.String msg) |
static void |
setResponseStatus(javax.servlet.http.HttpServletResponse response,
int sc) |
static void |
startTransaction(java.lang.String userAgent) |
createServer, getIp, getPort, getScheme, getServer, registerHandlers, setServer, setup, start, startHttp, stop
protected static long getStartMillis()
public static void startTransaction(java.lang.String userAgent)
public static void endTransaction()
public static java.lang.String getUserAgent()
public static void setResponseStatus(javax.servlet.http.HttpServletResponse response, int sc)
public static void sendResponseError(javax.servlet.http.HttpServletResponse response, int sc, java.lang.String msg) throws java.io.IOException
java.io.IOException
public void acceptRequests()
protected java.lang.RuntimeException failEx(java.lang.String message)
failEx
in class AbstractHTTPD
protected void registerHandlers(org.eclipse.jetty.server.handler.HandlerWrapper handlerWrapper, org.eclipse.jetty.servlet.ServletContextHandler context)
registerHandlers
in class AbstractHTTPD
protected void handle1(java.lang.String target, org.eclipse.jetty.server.Request baseRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
public static java.io.InputStream extractPartInputStream(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
public static void sendErrorResponse(javax.servlet.http.HttpServletResponse response, java.lang.Exception e, java.lang.String uri)
public static java.lang.String getDecodedUri(javax.servlet.http.HttpServletRequest request)
public static void logRequest(java.lang.String method, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)