Package netflix.karyon.transport.util

Examples of netflix.karyon.transport.util.HttpContentInputStream


        try {
            URI baseUri = new URI("/"); // Since the netty server does not have a context path element as such, so base uri is always /
            URI uri = new URI(nettyRequest.getUri());
            return new ContainerRequest(application, nettyRequest.getHttpMethod().name(),
                                        baseUri, uri, new JerseyRequestHeadersAdapter(nettyRequest.getHeaders()),
                                        new HttpContentInputStream(allocator, nettyRequest.getContent()));
        } catch (URISyntaxException e) {
            logger.error(String.format("Invalid request uri: %s", nettyRequest.getUri()), e);
            throw new IllegalArgumentException(e);
        }
    }
View Full Code Here

TOP

Related Classes of netflix.karyon.transport.util.HttpContentInputStream

Copyright © 2018 www.massapicom. 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.