public class ResponseObject
extends java.lang.Object
implements io.vertx.core.http.HttpServerResponse
Modifier and Type | Field and Description |
---|---|
io.vertx.core.buffer.Buffer |
content |
Constructor and Description |
---|
ResponseObject() |
Modifier and Type | Method and Description |
---|---|
io.vertx.core.http.HttpServerResponse |
addCookie(io.vertx.core.http.Cookie cookie) |
io.vertx.core.http.HttpServerResponse |
bodyEndHandler(io.vertx.core.Handler<java.lang.Void> handler) |
long |
bytesWritten() |
void |
close() |
boolean |
closed() |
io.vertx.core.http.HttpServerResponse |
closeHandler(io.vertx.core.Handler<java.lang.Void> handler) |
io.vertx.core.http.HttpServerResponse |
drainHandler(io.vertx.core.Handler<java.lang.Void> handler) |
io.vertx.core.Future<java.lang.Void> |
end() |
io.vertx.core.Future<java.lang.Void> |
end(io.vertx.core.buffer.Buffer chunk) |
void |
end(io.vertx.core.buffer.Buffer chunk,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) |
void |
end(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) |
io.vertx.core.Future<java.lang.Void> |
end(java.lang.String chunk) |
void |
end(java.lang.String chunk,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) |
io.vertx.core.Future<java.lang.Void> |
end(java.lang.String chunk,
java.lang.String enc) |
void |
end(java.lang.String chunk,
java.lang.String enc,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) |
boolean |
ended() |
io.vertx.core.http.HttpServerResponse |
endHandler(io.vertx.core.Handler<java.lang.Void> handler) |
io.vertx.core.http.HttpServerResponse |
exceptionHandler(io.vertx.core.Handler<java.lang.Throwable> handler) |
int |
getStatusCode() |
java.lang.String |
getStatusMessage() |
io.vertx.core.MultiMap |
headers() |
io.vertx.core.http.HttpServerResponse |
headersEndHandler(io.vertx.core.Handler<java.lang.Void> handler) |
boolean |
headWritten() |
boolean |
isChunked() |
io.vertx.core.Future<io.vertx.core.http.HttpServerResponse> |
push(io.vertx.core.http.HttpMethod method,
java.lang.String host,
java.lang.String path,
io.vertx.core.MultiMap headers) |
io.vertx.core.http.HttpServerResponse |
putHeader(java.lang.CharSequence name,
java.lang.CharSequence value) |
io.vertx.core.http.HttpServerResponse |
putHeader(java.lang.CharSequence name,
java.lang.Iterable<java.lang.CharSequence> values) |
io.vertx.core.http.HttpServerResponse |
putHeader(java.lang.String name,
java.lang.Iterable<java.lang.String> values) |
io.vertx.core.http.HttpServerResponse |
putHeader(java.lang.String name,
java.lang.String value) |
io.vertx.core.http.HttpServerResponse |
putTrailer(java.lang.CharSequence name,
java.lang.CharSequence value) |
io.vertx.core.http.HttpServerResponse |
putTrailer(java.lang.CharSequence name,
java.lang.Iterable<java.lang.CharSequence> value) |
io.vertx.core.http.HttpServerResponse |
putTrailer(java.lang.String name,
java.lang.Iterable<java.lang.String> values) |
io.vertx.core.http.HttpServerResponse |
putTrailer(java.lang.String name,
java.lang.String value) |
io.vertx.core.http.Cookie |
removeCookie(java.lang.String name,
boolean invalidate) |
io.vertx.core.http.Cookie |
removeCookie(java.lang.String name,
java.lang.String domain,
java.lang.String path,
boolean invalidate) |
java.util.Set<io.vertx.core.http.Cookie> |
removeCookies(java.lang.String name,
boolean invalidate) |
boolean |
reset(long code) |
io.vertx.core.Future<java.lang.Void> |
sendFile(java.lang.String filename) |
io.vertx.core.Future<java.lang.Void> |
sendFile(java.lang.String filename,
long offset,
long length) |
io.vertx.core.http.HttpServerResponse |
sendFile(java.lang.String filename,
long offset,
long length,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> resultHandler) |
io.vertx.core.http.HttpServerResponse |
setChunked(boolean chunked) |
io.vertx.core.http.HttpServerResponse |
setStatusCode(int statusCode) |
io.vertx.core.http.HttpServerResponse |
setStatusMessage(java.lang.String statusMessage) |
io.vertx.core.http.HttpServerResponse |
setWriteQueueMaxSize(int maxSize) |
int |
streamId() |
io.vertx.core.MultiMap |
trailers() |
io.vertx.core.buffer.Buffer |
waitForIt(long timeout,
java.util.concurrent.TimeUnit unit) |
io.vertx.core.Future<java.lang.Void> |
write(io.vertx.core.buffer.Buffer chunk) |
void |
write(io.vertx.core.buffer.Buffer data,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) |
io.vertx.core.Future<java.lang.Void> |
write(java.lang.String chunk) |
void |
write(java.lang.String chunk,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) |
io.vertx.core.Future<java.lang.Void> |
write(java.lang.String chunk,
java.lang.String enc) |
void |
write(java.lang.String chunk,
java.lang.String enc,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) |
io.vertx.core.http.HttpServerResponse |
writeContinue() |
io.vertx.core.http.HttpServerResponse |
writeCustomFrame(int type,
int flags,
io.vertx.core.buffer.Buffer payload) |
boolean |
writeQueueFull() |
public io.vertx.core.http.HttpServerResponse exceptionHandler(io.vertx.core.Handler<java.lang.Throwable> handler)
exceptionHandler
in interface io.vertx.core.http.HttpServerResponse
exceptionHandler
in interface io.vertx.core.streams.StreamBase
exceptionHandler
in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
public io.vertx.core.http.HttpServerResponse setWriteQueueMaxSize(int maxSize)
setWriteQueueMaxSize
in interface io.vertx.core.http.HttpServerResponse
setWriteQueueMaxSize
in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
public boolean writeQueueFull()
writeQueueFull
in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
public io.vertx.core.http.HttpServerResponse drainHandler(io.vertx.core.Handler<java.lang.Void> handler)
drainHandler
in interface io.vertx.core.http.HttpServerResponse
drainHandler
in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
public int getStatusCode()
getStatusCode
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse setStatusCode(int statusCode)
setStatusCode
in interface io.vertx.core.http.HttpServerResponse
public java.lang.String getStatusMessage()
getStatusMessage
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse setStatusMessage(java.lang.String statusMessage)
setStatusMessage
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse setChunked(boolean chunked)
setChunked
in interface io.vertx.core.http.HttpServerResponse
public boolean isChunked()
isChunked
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.MultiMap headers()
headers
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse putHeader(java.lang.String name, java.lang.String value)
putHeader
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse putHeader(java.lang.CharSequence name, java.lang.CharSequence value)
putHeader
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse putHeader(java.lang.String name, java.lang.Iterable<java.lang.String> values)
putHeader
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse putHeader(java.lang.CharSequence name, java.lang.Iterable<java.lang.CharSequence> values)
putHeader
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.MultiMap trailers()
trailers
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse putTrailer(java.lang.String name, java.lang.String value)
putTrailer
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse putTrailer(java.lang.CharSequence name, java.lang.CharSequence value)
putTrailer
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse putTrailer(java.lang.String name, java.lang.Iterable<java.lang.String> values)
putTrailer
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse putTrailer(java.lang.CharSequence name, java.lang.Iterable<java.lang.CharSequence> value)
putTrailer
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse closeHandler(io.vertx.core.Handler<java.lang.Void> handler)
closeHandler
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.Future<java.lang.Void> write(io.vertx.core.buffer.Buffer chunk)
write
in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
public io.vertx.core.Future<java.lang.Void> write(java.lang.String chunk, java.lang.String enc)
write
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.Future<java.lang.Void> write(java.lang.String chunk)
write
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.buffer.Buffer waitForIt(long timeout, java.util.concurrent.TimeUnit unit)
public io.vertx.core.Future<java.lang.Void> end(java.lang.String chunk)
end
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.Future<java.lang.Void> end(java.lang.String chunk, java.lang.String enc)
end
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.Future<java.lang.Void> end(io.vertx.core.buffer.Buffer chunk)
end
in interface io.vertx.core.http.HttpServerResponse
end
in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
public io.vertx.core.Future<java.lang.Void> end()
end
in interface io.vertx.core.http.HttpServerResponse
end
in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
public io.vertx.core.Future<java.lang.Void> sendFile(java.lang.String filename)
sendFile
in interface io.vertx.core.http.HttpServerResponse
public void close()
close
in interface io.vertx.core.http.HttpServerResponse
public void end(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
end
in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
public void write(io.vertx.core.buffer.Buffer data, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
write
in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
public long bytesWritten()
bytesWritten
in interface io.vertx.core.http.HttpServerResponse
public int streamId()
streamId
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse endHandler(io.vertx.core.Handler<java.lang.Void> handler)
endHandler
in interface io.vertx.core.http.HttpServerResponse
public void write(java.lang.String chunk, java.lang.String enc, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
write
in interface io.vertx.core.http.HttpServerResponse
public void write(java.lang.String chunk, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
write
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse writeContinue()
writeContinue
in interface io.vertx.core.http.HttpServerResponse
public void end(java.lang.String chunk, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
end
in interface io.vertx.core.http.HttpServerResponse
public void end(java.lang.String chunk, java.lang.String enc, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
end
in interface io.vertx.core.http.HttpServerResponse
public void end(io.vertx.core.buffer.Buffer chunk, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
end
in interface io.vertx.core.http.HttpServerResponse
end
in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
public io.vertx.core.Future<java.lang.Void> sendFile(java.lang.String filename, long offset, long length)
sendFile
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse sendFile(java.lang.String filename, long offset, long length, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> resultHandler)
sendFile
in interface io.vertx.core.http.HttpServerResponse
public boolean ended()
ended
in interface io.vertx.core.http.HttpServerResponse
public boolean closed()
closed
in interface io.vertx.core.http.HttpServerResponse
public boolean headWritten()
headWritten
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse headersEndHandler(io.vertx.core.Handler<java.lang.Void> handler)
headersEndHandler
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse bodyEndHandler(io.vertx.core.Handler<java.lang.Void> handler)
bodyEndHandler
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.Future<io.vertx.core.http.HttpServerResponse> push(io.vertx.core.http.HttpMethod method, java.lang.String host, java.lang.String path, io.vertx.core.MultiMap headers)
push
in interface io.vertx.core.http.HttpServerResponse
public boolean reset(long code)
reset
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse writeCustomFrame(int type, int flags, io.vertx.core.buffer.Buffer payload)
writeCustomFrame
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.HttpServerResponse addCookie(io.vertx.core.http.Cookie cookie)
addCookie
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.Cookie removeCookie(java.lang.String name, boolean invalidate)
removeCookie
in interface io.vertx.core.http.HttpServerResponse
public java.util.Set<io.vertx.core.http.Cookie> removeCookies(java.lang.String name, boolean invalidate)
removeCookies
in interface io.vertx.core.http.HttpServerResponse
public io.vertx.core.http.Cookie removeCookie(java.lang.String name, java.lang.String domain, java.lang.String path, boolean invalidate)
removeCookie
in interface io.vertx.core.http.HttpServerResponse
Copyright © 2022. All Rights Reserved.