public class ResponseObject
extends java.lang.Object
implements org.vertx.java.core.http.HttpServerResponse
Modifier and Type | Field and Description |
---|---|
org.vertx.java.core.buffer.Buffer |
content |
Constructor and Description |
---|
ResponseObject() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.vertx.java.core.http.HttpServerResponse |
closeHandler(org.vertx.java.core.Handler<java.lang.Void> handler) |
org.vertx.java.core.http.HttpServerResponse |
drainHandler(org.vertx.java.core.Handler<java.lang.Void> handler) |
void |
end() |
void |
end(org.vertx.java.core.buffer.Buffer chunk) |
void |
end(java.lang.String chunk) |
void |
end(java.lang.String chunk,
java.lang.String enc) |
org.vertx.java.core.http.HttpServerResponse |
exceptionHandler(org.vertx.java.core.Handler<java.lang.Throwable> handler) |
int |
getStatusCode() |
java.lang.String |
getStatusMessage() |
org.vertx.java.core.MultiMap |
headers() |
boolean |
isChunked() |
org.vertx.java.core.http.HttpServerResponse |
putHeader(java.lang.CharSequence name,
java.lang.CharSequence value) |
org.vertx.java.core.http.HttpServerResponse |
putHeader(java.lang.CharSequence name,
java.lang.Iterable<java.lang.CharSequence> values) |
org.vertx.java.core.http.HttpServerResponse |
putHeader(java.lang.String name,
java.lang.Iterable<java.lang.String> values) |
org.vertx.java.core.http.HttpServerResponse |
putHeader(java.lang.String name,
java.lang.String value) |
org.vertx.java.core.http.HttpServerResponse |
putTrailer(java.lang.CharSequence name,
java.lang.CharSequence value) |
org.vertx.java.core.http.HttpServerResponse |
putTrailer(java.lang.CharSequence name,
java.lang.Iterable<java.lang.CharSequence> value) |
org.vertx.java.core.http.HttpServerResponse |
putTrailer(java.lang.String name,
java.lang.Iterable<java.lang.String> values) |
org.vertx.java.core.http.HttpServerResponse |
putTrailer(java.lang.String name,
java.lang.String value) |
org.vertx.java.core.http.HttpServerResponse |
sendFile(java.lang.String filename) |
org.vertx.java.core.http.HttpServerResponse |
sendFile(java.lang.String filename,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<java.lang.Void>> resultHandler) |
org.vertx.java.core.http.HttpServerResponse |
sendFile(java.lang.String filename,
java.lang.String notFoundFile) |
org.vertx.java.core.http.HttpServerResponse |
sendFile(java.lang.String filename,
java.lang.String notFoundFile,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<java.lang.Void>> resultHandler) |
org.vertx.java.core.http.HttpServerResponse |
setChunked(boolean chunked) |
org.vertx.java.core.http.HttpServerResponse |
setStatusCode(int statusCode) |
org.vertx.java.core.http.HttpServerResponse |
setStatusMessage(java.lang.String statusMessage) |
org.vertx.java.core.http.HttpServerResponse |
setWriteQueueMaxSize(int maxSize) |
org.vertx.java.core.MultiMap |
trailers() |
org.vertx.java.core.buffer.Buffer |
waitForIt(long timeout,
java.util.concurrent.TimeUnit unit) |
org.vertx.java.core.http.HttpServerResponse |
write(org.vertx.java.core.buffer.Buffer chunk) |
org.vertx.java.core.http.HttpServerResponse |
write(java.lang.String chunk) |
org.vertx.java.core.http.HttpServerResponse |
write(java.lang.String chunk,
java.lang.String enc) |
boolean |
writeQueueFull() |
public org.vertx.java.core.http.HttpServerResponse exceptionHandler(org.vertx.java.core.Handler<java.lang.Throwable> handler)
exceptionHandler
in interface org.vertx.java.core.streams.ExceptionSupport<org.vertx.java.core.http.HttpServerResponse>
public org.vertx.java.core.http.HttpServerResponse setWriteQueueMaxSize(int maxSize)
setWriteQueueMaxSize
in interface org.vertx.java.core.streams.DrainSupport<org.vertx.java.core.http.HttpServerResponse>
public boolean writeQueueFull()
writeQueueFull
in interface org.vertx.java.core.streams.DrainSupport<org.vertx.java.core.http.HttpServerResponse>
public org.vertx.java.core.http.HttpServerResponse drainHandler(org.vertx.java.core.Handler<java.lang.Void> handler)
drainHandler
in interface org.vertx.java.core.streams.DrainSupport<org.vertx.java.core.http.HttpServerResponse>
public int getStatusCode()
getStatusCode
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.http.HttpServerResponse setStatusCode(int statusCode)
setStatusCode
in interface org.vertx.java.core.http.HttpServerResponse
public java.lang.String getStatusMessage()
getStatusMessage
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.http.HttpServerResponse setStatusMessage(java.lang.String statusMessage)
setStatusMessage
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.http.HttpServerResponse setChunked(boolean chunked)
setChunked
in interface org.vertx.java.core.http.HttpServerResponse
public boolean isChunked()
isChunked
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.MultiMap headers()
headers
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.http.HttpServerResponse putHeader(java.lang.String name, java.lang.String value)
putHeader
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.http.HttpServerResponse putHeader(java.lang.CharSequence name, java.lang.CharSequence value)
putHeader
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.http.HttpServerResponse putHeader(java.lang.String name, java.lang.Iterable<java.lang.String> values)
putHeader
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.http.HttpServerResponse putHeader(java.lang.CharSequence name, java.lang.Iterable<java.lang.CharSequence> values)
putHeader
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.MultiMap trailers()
trailers
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.http.HttpServerResponse putTrailer(java.lang.String name, java.lang.String value)
putTrailer
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.http.HttpServerResponse putTrailer(java.lang.CharSequence name, java.lang.CharSequence value)
putTrailer
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.http.HttpServerResponse putTrailer(java.lang.String name, java.lang.Iterable<java.lang.String> values)
putTrailer
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.http.HttpServerResponse putTrailer(java.lang.CharSequence name, java.lang.Iterable<java.lang.CharSequence> value)
putTrailer
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.http.HttpServerResponse closeHandler(org.vertx.java.core.Handler<java.lang.Void> handler)
closeHandler
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.http.HttpServerResponse write(org.vertx.java.core.buffer.Buffer chunk)
write
in interface org.vertx.java.core.http.HttpServerResponse
write
in interface org.vertx.java.core.streams.WriteStream<org.vertx.java.core.http.HttpServerResponse>
public org.vertx.java.core.http.HttpServerResponse write(java.lang.String chunk, java.lang.String enc)
write
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.http.HttpServerResponse write(java.lang.String chunk)
write
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.buffer.Buffer waitForIt(long timeout, java.util.concurrent.TimeUnit unit)
public void end(java.lang.String chunk)
end
in interface org.vertx.java.core.http.HttpServerResponse
public void end(java.lang.String chunk, java.lang.String enc)
end
in interface org.vertx.java.core.http.HttpServerResponse
public void end(org.vertx.java.core.buffer.Buffer chunk)
end
in interface org.vertx.java.core.http.HttpServerResponse
public void end()
end
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.http.HttpServerResponse sendFile(java.lang.String filename)
sendFile
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.http.HttpServerResponse sendFile(java.lang.String filename, java.lang.String notFoundFile)
sendFile
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.http.HttpServerResponse sendFile(java.lang.String filename, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<java.lang.Void>> resultHandler)
sendFile
in interface org.vertx.java.core.http.HttpServerResponse
public org.vertx.java.core.http.HttpServerResponse sendFile(java.lang.String filename, java.lang.String notFoundFile, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<java.lang.Void>> resultHandler)
sendFile
in interface org.vertx.java.core.http.HttpServerResponse
public void close()
close
in interface org.vertx.java.core.http.HttpServerResponse
Copyright © 2021. All Rights Reserved.