Class JsonSchemaTransformer
java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.mongodb.handlers.schema.JsonSchemaTransformer
- All Implemented Interfaces:
io.undertow.server.HttpHandler
On write, escapes schema properties ($ prefixed) On read, unescape schema
properties
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Field Summary
Fields inherited from class org.restheart.handlers.PipelinedHandler
CONTENT_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRequest(io.undertow.server.HttpServerExchange exchange) Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
Constructor Details
-
JsonSchemaTransformer
public JsonSchemaTransformer(boolean phase) - Parameters:
phase- true for request, false for response
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Throws:
Exception
-