Package org.kie.server.router.handlers
Class AbstractAggregateHttpHandler
- java.lang.Object
-
- org.kie.server.router.handlers.AbstractAggregateHttpHandler
-
- All Implemented Interfaces:
io.undertow.server.HttpHandler
- Direct Known Subclasses:
ContainersHttpHandler,DocumentsHttpHandler,JobsHttpHandler,OptionsHttpHandler,QueriesDataHttpHandler,QueriesHttpHandler
public abstract class AbstractAggregateHttpHandler extends Object implements io.undertow.server.HttpHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected ConfigurationManagerconfigurationManagerprotected static StringDEFAULT_ACCEPTprotected io.undertow.server.HttpHandlerhttpHandlerprotected static org.jboss.logging.Loggerlogprotected static StringREPLACE_PAGEprotected static StringREPLACE_PAGE_SIZE
-
Constructor Summary
Constructors Constructor Description AbstractAggregateHttpHandler(io.undertow.server.HttpHandler httpHandler, ConfigurationManager configurationManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<String>getServerHosts()protected voidhandleOptions(io.undertow.server.HttpServerExchange exchange)voidhandleRequest(io.undertow.server.HttpServerExchange exchange)protected voidremoveHostOnException(String url, Exception e)protected StringsendOptionsRequest(String url, io.undertow.server.HttpServerExchange exchange, Map<String,List<String>> responseHeaders)protected StringsendRequest(String url, io.undertow.server.HttpServerExchange exchange, Map<String,List<String>> responseHeaders, String page, String pageSize)protected booleansupportAdvancedAggregate()
-
-
-
Field Detail
-
log
protected static final org.jboss.logging.Logger log
-
REPLACE_PAGE
protected static final String REPLACE_PAGE
- See Also:
- Constant Field Values
-
REPLACE_PAGE_SIZE
protected static final String REPLACE_PAGE_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_ACCEPT
protected static final String DEFAULT_ACCEPT
- See Also:
- Constant Field Values
-
httpHandler
protected io.undertow.server.HttpHandler httpHandler
-
configurationManager
protected ConfigurationManager configurationManager
-
-
Constructor Detail
-
AbstractAggregateHttpHandler
public AbstractAggregateHttpHandler(io.undertow.server.HttpHandler httpHandler, ConfigurationManager configurationManager)
-
-
Method Detail
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Throws:
Exception
-
sendRequest
protected String sendRequest(String url, io.undertow.server.HttpServerExchange exchange, Map<String,List<String>> responseHeaders, String page, String pageSize) throws Exception
- Throws:
Exception
-
sendOptionsRequest
protected String sendOptionsRequest(String url, io.undertow.server.HttpServerExchange exchange, Map<String,List<String>> responseHeaders) throws Exception
- Throws:
Exception
-
supportAdvancedAggregate
protected boolean supportAdvancedAggregate()
-
-