com.nesscomputing.httpserver
Class HttpServerHandlerBinder

java.lang.Object
  extended by com.nesscomputing.httpserver.HttpServerHandlerBinder

public final class HttpServerHandlerBinder
extends Object

Bind additional Handler elements into the http server.


Field Summary
static String CATCHALL_NAME
           
static Annotation CATCHALL_NAMED
           
static String HANDLER_NAME
           
static Annotation HANDLER_NAMED
           
static String LOGGING_NAME
           
static Annotation LOGGING_NAMED
           
static String SECURITY_NAME
           
static Annotation SECURITY_NAMED
           
 
Method Summary
static com.google.inject.binder.LinkedBindingBuilder<javax.servlet.Servlet> bindCatchallServlet(com.google.inject.Binder binder)
          Configure the "get all requests" servlet that backs the GuiceFilter.
static com.google.inject.binder.LinkedBindingBuilder<org.eclipse.jetty.server.Handler> bindHandler(com.google.inject.Binder binder)
          Bind a new handler into the jetty service.
static com.google.inject.binder.LinkedBindingBuilder<org.eclipse.jetty.server.Handler> bindLoggingHandler(com.google.inject.Binder binder)
          Bind a new handler into the jetty service.
static com.google.inject.binder.LinkedBindingBuilder<org.eclipse.jetty.server.handler.HandlerWrapper> bindSecurityHandler(com.google.inject.Binder binder)
          Bind a delegating security handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HANDLER_NAME

public static final String HANDLER_NAME
See Also:
Constant Field Values

HANDLER_NAMED

public static final Annotation HANDLER_NAMED

LOGGING_NAME

public static final String LOGGING_NAME
See Also:
Constant Field Values

LOGGING_NAMED

public static final Annotation LOGGING_NAMED

SECURITY_NAME

public static final String SECURITY_NAME
See Also:
Constant Field Values

SECURITY_NAMED

public static final Annotation SECURITY_NAMED

CATCHALL_NAME

public static final String CATCHALL_NAME
See Also:
Constant Field Values

CATCHALL_NAMED

public static final Annotation CATCHALL_NAMED
Method Detail

bindHandler

public static com.google.inject.binder.LinkedBindingBuilder<org.eclipse.jetty.server.Handler> bindHandler(com.google.inject.Binder binder)
Bind a new handler into the jetty service. These handlers are bound before the servlet handler and can handle parts of the URI space before a servlet sees it. Do not use this method to bind logging handlers as they would be called before any functionality has been executed and logging information would be incomplete. Use {@link HttpServerHandlerBinder#bindLoggingHandler(Binder) instead.


bindLoggingHandler

public static com.google.inject.binder.LinkedBindingBuilder<org.eclipse.jetty.server.Handler> bindLoggingHandler(com.google.inject.Binder binder)
Bind a new handler into the jetty service. These handlers are bound after the servlet handler and will not see any requests before they have been handled. This is intended to bind logging, statistics etc. which want to operate on the results of a request to the server. Any handler intended to manage content or a part of the URI space should use bindHandler(Binder).


bindSecurityHandler

public static com.google.inject.binder.LinkedBindingBuilder<org.eclipse.jetty.server.handler.HandlerWrapper> bindSecurityHandler(com.google.inject.Binder binder)
Bind a delegating security handler. Any request will be routed through this handler and can be allowed or denied by this handler. If no handler is bound, requests are forwarded to the internal handler collection.


bindCatchallServlet

public static com.google.inject.binder.LinkedBindingBuilder<javax.servlet.Servlet> bindCatchallServlet(com.google.inject.Binder binder)
Configure the "get all requests" servlet that backs the GuiceFilter. This servlet should log all requests as legal request should never hit it.



Copyright © 2012 Ness Computing, Inc.. All Rights Reserved.