public class ServletBlockingHttpExchange extends Object implements BlockingHttpExchange
Constructor and Description |
---|
ServletBlockingHttpExchange(HttpServerExchange exchange) |
Modifier and Type | Method and Description |
---|---|
void | close() Closes both the input and output streams |
InputStream | getInputStream() Returns the input stream that is in use for this exchange. |
OutputStream | getOutputStream() Returns the output stream that is in use for this exchange. |
Receiver | getReceiver() returns a receiver based on the provided input stream. |
Sender | getSender() Returns a sender based on the provided output stream |
public ServletBlockingHttpExchange(HttpServerExchange exchange)
public InputStream getInputStream()
BlockingHttpExchange
getInputStream
in interface BlockingHttpExchange
public OutputStream getOutputStream()
BlockingHttpExchange
getOutputStream
in interface BlockingHttpExchange
public Sender getSender()
BlockingHttpExchange
getSender
in interface BlockingHttpExchange
public void close() throws IOException
BlockingHttpExchange
close
in interface BlockingHttpExchange
close
in interface Closeable
close
in interface AutoCloseable
IOException
public Receiver getReceiver()
BlockingHttpExchange
getReceiver
in interface BlockingHttpExchange
Copyright © 2015 JBoss by Red Hat. All rights reserved.