/** * Create and return a NIOInputStream to read the content * associated with this Request. * * @return {@link NIOInputStream} */ public NIOInputStream createInputStream() { inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * Create and return a NIOInputStream to read the content * associated with this Request. * * @return {@link NIOInputStream} */ public NIOInputStream createInputStream() { inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * Create and return a NIOInputStream to read the content * associated with this Request. * * @return {@link NIOInputStream} */ public NIOInputStream createInputStream() { inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * Create and return a NIOInputStream to read the content * associated with this Request. * * @return {@link NIOInputStream} */ public NIOInputStream createInputStream() { inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * Create and return a NIOInputStream to read the content * associated with this Request. * * @return {@link NIOInputStream} */ public NIOInputStream createInputStream() { inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * Create and return a NIOInputStream to read the content * associated with this Request. * * @return {@link NIOInputStream} */ public NIOInputStream createInputStream() { inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * Create and return a NIOInputStream to read the content * associated with this Request. * * @return {@link NIOInputStream} */ public NIOInputStream createInputStream() { inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * Create and return a NIOInputStream to read the content * associated with this Request. * * @return {@link NIOInputStream} */ public NIOInputStream createInputStream() { inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * Create and return a NIOInputStream to read the content * associated with this Request. * * @return {@link NIOInputStream} */ public NIOInputStream createInputStream() { inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * Create and return a NIOInputStream to read the content * associated with this Request. * * @return {@link NIOInputStream} */ public NIOInputStream createInputStream() { inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * Create and return a NIOInputStream to read the content * associated with this Request. * * @return {@link NIOInputStream} */ public NIOInputStream createInputStream() { inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * <p> * Return the {@link NIOInputStream} for this {@link Request}. This stream * will not block when reading content. * </p> * * <p> * NOTE: For now, in order to use non-blocking functionality, this * method must be invoked before the {@link HttpHandler#service(Request, Response)} * method returns. We hope to have this addressed in the next release. * </p> * * @return the {@link NIOInputStream} for this {@link Request}. * * @exception IllegalStateException if {@link #getReader()} or * {@link #getNIOReader()} has already been called for this request. */ public NIOInputStream getNIOInputStream() { if (usingReader) throw new IllegalStateException("Illegal attempt to call getInputStream() after getReader() has already been called."); usingInputStream = true; inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * <p> * Return the {@link NIOInputStream} for this {@link Request}. This stream * will not block when reading content. * </p> * * <p> * NOTE: For now, in order to use non-blocking functionality, this * method must be invoked before the {@link HttpHandler#service(Request, Response)} * method returns. We hope to have this addressed in the next release. * </p> * * @return the {@link NIOInputStream} for this {@link Request}. * * @exception IllegalStateException if {@link #getReader()} or * {@link #getNIOReader()} has already been called for this request. */ public NIOInputStream getNIOInputStream() { if (usingReader) throw new IllegalStateException("Illegal attempt to call getInputStream() after getReader() has already been called."); usingInputStream = true; inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * <p> * Return the {@link NIOInputStream} for this {@link Request}. This stream * will not block when reading content. * </p> * * <p> * NOTE: For now, in order to use non-blocking functionality, this * method must be invoked before the {@link HttpHandler#service(Request, Response)} * method returns. We hope to have this addressed in the next release. * </p> * * @return the {@link NIOInputStream} for this {@link Request}. * * @exception IllegalStateException if {@link #getReader()} or * {@link #getNIOReader()} has already been called for this request. */ public NIOInputStream getNIOInputStream() { if (usingReader) throw new IllegalStateException("Illegal attempt to call getInputStream() after getReader() has already been called."); usingInputStream = true; inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * <p> * Return the {@link NIOInputStream} for this {@link Request}. This stream * will not block when reading content. * </p> * * <p> * NOTE: For now, in order to use non-blocking functionality, this * method must be invoked before the {@link HttpHandler#service(Request, Response)} * method returns. We hope to have this addressed in the next release. * </p> * * @return the {@link NIOInputStream} for this {@link Request}. * * @exception IllegalStateException if {@link #getReader()} or * {@link #getNIOReader()} has already been called for this request. */ public NIOInputStream getNIOInputStream() { if (usingReader) throw new IllegalStateException("Illegal attempt to call getInputStream() after getReader() has already been called."); usingInputStream = true; inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * <p> * Return the {@link NIOInputStream} for this {@link Request}. This stream * will not block when reading content. * </p> * * <p> * NOTE: For now, in order to use non-blocking functionality, this * method must be invoked before the {@link HttpHandler#service(Request, Response)} * method returns. We hope to have this addressed in the next release. * </p> * * @return the {@link NIOInputStream} for this {@link Request}. * * @exception IllegalStateException if {@link #getReader()} or * {@link #getNIOReader()} has already been called for this request. */ public NIOInputStream getNIOInputStream() { if (usingReader) throw new IllegalStateException("Illegal attempt to call getInputStream() after getReader() has already been called."); usingInputStream = true; inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * <p> * Return the {@link NIOInputStream} for this {@link Request}. This stream * will not block when reading content. * </p> * * <p> * NOTE: For now, in order to use non-blocking functionality, this * method must be invoked before the {@link HttpHandler#service(Request, Response)} * method returns. We hope to have this addressed in the next release. * </p> * * @return the {@link NIOInputStream} for this {@link Request}. * * @exception IllegalStateException if {@link #getReader()} or * {@link #getNIOReader()} has already been called for this request. */ public NIOInputStream getNIOInputStream() { if (usingReader) throw new IllegalStateException("Illegal attempt to call getInputStream() after getReader() has already been called."); usingInputStream = true; inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * <p> * Return the {@link NIOInputStream} for this {@link Request}. This stream * will not block when reading content. * </p> * * <p> * NOTE: For now, in order to use non-blocking functionality, this * method must be invoked before the {@link HttpHandler#service(Request, Response)} * method returns. We hope to have this addressed in the next release. * </p> * * @return the {@link NIOInputStream} for this {@link Request}. * * @exception IllegalStateException if {@link #getReader()} or * {@link #getNIOReader()} has already been called for this request. */ public NIOInputStream getNIOInputStream() { if (usingReader) throw new IllegalStateException("Illegal attempt to call getInputStream() after getReader() has already been called."); usingInputStream = true; inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * <p> * Return the {@link NIOInputStream} for this {@link Request}. This stream * will not block when reading content. * </p> * * <p> * NOTE: For now, in order to use non-blocking functionality, this * method must be invoked before the {@link HttpHandler#service(Request, Response)} * method returns. We hope to have this addressed in the next release. * </p> * * @return the {@link NIOInputStream} for this {@link Request}. * * @exception IllegalStateException if {@link #getReader()} or * {@link #getNIOReader()} has already been called for this request. */ public NIOInputStream getNIOInputStream() { if (usingReader) throw new IllegalStateException("Illegal attempt to call getInputStream() after getReader() has already been called."); usingInputStream = true; inputStream.setInputBuffer(inputBuffer); return inputStream; }
/** * <p> * Return the {@link NIOInputStream} for this {@link Request}. This stream * will not block when reading content. * </p> * * <p> * NOTE: For now, in order to use non-blocking functionality, this * method must be invoked before the {@link HttpHandler#service(Request, Response)} * method returns. We hope to have this addressed in the next release. * </p> * * @return the {@link NIOInputStream} for this {@link Request}. * * @exception IllegalStateException if {@link #getReader()} or * {@link #getNIOReader()} has already been called for this request. */ public NIOInputStream getNIOInputStream() { if (usingReader) throw new IllegalStateException("Illegal attempt to call getInputStream() after getReader() has already been called."); usingInputStream = true; inputStream.setInputBuffer(inputBuffer); return inputStream; }