public class AttachmentHandler<T> extends Object implements HttpHandler
| Constructor and Description | 
|---|
AttachmentHandler(AttachmentKey<T> key, HttpHandler next)  |  
AttachmentHandler(AttachmentKey<T> key, HttpHandler next, T instance)  |  
| Modifier and Type | Method and Description | 
|---|---|
T |  getInstance()  |  
HttpHandler |  getNext()  |  
void |  handleRequest(HttpServerExchange exchange) Handle the request.   |  
void |  setInstance(T instance)  |  
void |  setNext(HttpHandler next)  |  
public AttachmentHandler(AttachmentKey<T> key, HttpHandler next, T instance)
public AttachmentHandler(AttachmentKey<T> key, HttpHandler next)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionpublic T getInstance()
public void setInstance(T instance)
public HttpHandler getNext()
public void setNext(HttpHandler next)
Copyright © 2017 JBoss by Red Hat. All rights reserved.