Interface AsyncMiddleManServlet.ContentTransformer

All Known Implementing Classes:
AfterContentTransformer, AsyncMiddleManServlet.GZIPContentTransformer
Enclosing class:
AsyncMiddleManServlet

public static interface AsyncMiddleManServlet.ContentTransformer

Allows applications to transform upstream and downstream content.

Typical use cases of transformations are URL rewriting of HTML anchors (where the value of the href attribute of <a> elements is modified by the proxy), field renaming of JSON documents, etc.

Applications should override AsyncMiddleManServlet.newClientRequestContentTransformer(HttpServletRequest, Request) and/or AsyncMiddleManServlet.newServerResponseContentTransformer(HttpServletRequest, HttpServletResponse, Response) to provide the transformer implementation.