Beispiel #1
0
 public void setNoEncodingHandler(HttpHandler noEncodingHandler) {
   HttpHandlers.handlerNotNull(noEncodingHandler);
   this.noEncodingHandler = noEncodingHandler;
 }
Beispiel #2
0
 public void setIdentityHandler(final HttpHandler identityHandler) {
   HttpHandlers.handlerNotNull(identityHandler);
   this.identityHandler = identityHandler;
   addEncodingHandler(IDENTITY, identityHandler, 0);
 }
Beispiel #3
0
 public synchronized void addEncodingHandler(
     final String encoding, final HttpHandler handler, int priority) {
   HttpHandlers.handlerNotNull(handler);
   this.encodingMap.put(encoding, new Encoding(handler, priority));
 }
 /**
  * Set the next http handler.
  *
  * @param next the next http handler
  */
 public void setNext(final HttpHandler next) {
   HttpHandlers.handlerNotNull(next);
   this.next = next;
 }