Code example for BasicHttpRequest

0
                throws MethodNotSupportedException { 
            if (requestline == null) {
                throw new IllegalArgumentException("Request line may not be null");
            } 
            //String method = requestline.getMethod(); 
            return new BasicHttpRequest(requestline);
        } 
 
        public HttpRequest newHttpRequest(final String method, final String uri)
                throws MethodNotSupportedException { 
            return new BasicHttpRequest(method, uri);
        } 
    } 
     
    static class MemorySessionInputBuffer extends AbstractSessionInputBuffer {
        public MemorySessionInputBuffer(byte[] value) {
            init(new ByteArrayInputStream(value), 1000, params);
        } 
 
        @Override 
        public boolean isDataAvailable(int timeout) throws IOException {