Examples of lookupFilteringEncoder()


Examples of org.grails.web.servlet.mvc.GrailsWebRequest.lookupFilteringEncoder()

    void initialize(final StreamCharBuffer buffer, final ServletResponse response,
            BoundedCharsAsEncodedBytesCounter bytesCounter) {
        DestinationFactory lazyTargetFactory = new DestinationFactory() {
            public Writer activateDestination() throws IOException {
                final GrailsWebRequest webRequest = GrailsWebRequest.lookup();
                encoder = webRequest != null ? webRequest.lookupFilteringEncoder() : null;
                if (encoder != null) {
                    return buffer.getWriterForEncoder(encoder, webRequest.getEncodingStateRegistry());
                }
                return buffer.getWriter();
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.