Package org.restheart.handlers
Class QueryStringRebuilder
java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.handlers.QueryStringRebuilder
- All Implemented Interfaces:
io.undertow.server.HttpHandler
rebuild the query string from the exchange.getQueryParameters() that might
have been updated by request interceptors. it also encodes values
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Field Summary
Fields inherited from class org.restheart.handlers.PipelinedHandler
CONTENT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of QueryStringRebuilerCreates a new instance of QueryStringRebuiler -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetOriginalQueryString(io.undertow.server.HttpServerExchange exchange) voidhandleRequest(io.undertow.server.HttpServerExchange exchange) Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
Constructor Details
-
QueryStringRebuilder
Creates a new instance of QueryStringRebuiler- Parameters:
next-
-
QueryStringRebuilder
public QueryStringRebuilder()Creates a new instance of QueryStringRebuiler
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Parameters:
exchange-- Throws:
Exception
-
getOriginalQueryString
-