Class AbstractResponseWrapper
java.lang.Object
io.quarkus.vertx.http.runtime.filters.AbstractResponseWrapper
- All Implemented Interfaces:
io.vertx.core.http.HttpServerResponse
,io.vertx.core.streams.StreamBase
,io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
- Direct Known Subclasses:
QuarkusRequestWrapper.ResponseWrapper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.vertx.core.http.HttpServerResponse
addCookie
(io.vertx.core.http.Cookie cookie) io.vertx.core.http.HttpServerResponse
bodyEndHandler
(io.vertx.core.Handler<Void> handler) long
void
close()
Deprecated.boolean
closed()
io.vertx.core.http.HttpServerResponse
closeHandler
(io.vertx.core.Handler<Void> handler) io.vertx.core.http.HttpServerResponse
drainHandler
(io.vertx.core.Handler<Void> handler) io.vertx.core.Future<Void>
end()
io.vertx.core.Future<Void>
end
(io.vertx.core.buffer.Buffer chunk) void
end
(io.vertx.core.buffer.Buffer chunk, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) void
io.vertx.core.Future<Void>
void
io.vertx.core.Future<Void>
void
boolean
ended()
io.vertx.core.http.HttpServerResponse
endHandler
(io.vertx.core.Handler<Void> handler) io.vertx.core.http.HttpServerResponse
exceptionHandler
(io.vertx.core.Handler<Throwable> handler) int
io.vertx.core.MultiMap
headers()
io.vertx.core.http.HttpServerResponse
headersEndHandler
(io.vertx.core.Handler<Void> handler) boolean
boolean
io.vertx.core.Future<io.vertx.core.http.HttpServerResponse>
push
(io.vertx.core.http.HttpMethod method, io.vertx.core.net.HostAndPort authority, String path, io.vertx.core.MultiMap headers) io.vertx.core.Future<io.vertx.core.http.HttpServerResponse>
io.vertx.core.http.HttpServerResponse
push
(io.vertx.core.http.HttpMethod method, String path, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpServerResponse>> handler) io.vertx.core.Future<io.vertx.core.http.HttpServerResponse>
io.vertx.core.http.HttpServerResponse
push
(io.vertx.core.http.HttpMethod method, String path, io.vertx.core.MultiMap headers, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpServerResponse>> handler) io.vertx.core.Future<io.vertx.core.http.HttpServerResponse>
io.vertx.core.http.HttpServerResponse
push
(io.vertx.core.http.HttpMethod method, String host, String path, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpServerResponse>> handler) io.vertx.core.Future<io.vertx.core.http.HttpServerResponse>
push
(io.vertx.core.http.HttpMethod method, String host, String path, io.vertx.core.MultiMap headers) Deprecated.io.vertx.core.http.HttpServerResponse
push
(io.vertx.core.http.HttpMethod method, String host, String path, io.vertx.core.MultiMap headers, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpServerResponse>> handler) io.vertx.core.http.HttpServerResponse
putHeader
(CharSequence name, CharSequence value) io.vertx.core.http.HttpServerResponse
putHeader
(CharSequence name, Iterable<CharSequence> values) io.vertx.core.http.HttpServerResponse
io.vertx.core.http.HttpServerResponse
io.vertx.core.http.HttpServerResponse
putTrailer
(CharSequence name, CharSequence value) io.vertx.core.http.HttpServerResponse
putTrailer
(CharSequence name, Iterable<CharSequence> value) io.vertx.core.http.HttpServerResponse
putTrailer
(String name, Iterable<String> values) io.vertx.core.http.HttpServerResponse
putTrailer
(String name, String value) io.vertx.core.http.Cookie
removeCookie
(String name) io.vertx.core.http.Cookie
removeCookie
(String name, boolean invalidate) io.vertx.core.http.Cookie
removeCookie
(String name, String domain, String path) io.vertx.core.http.Cookie
removeCookie
(String name, String domain, String path, boolean invalidate) Set<io.vertx.core.http.Cookie>
removeCookies
(String name) Set<io.vertx.core.http.Cookie>
removeCookies
(String name, boolean invalidate) boolean
reset()
boolean
reset
(long code) io.vertx.core.Future<Void>
send()
io.vertx.core.Future<Void>
send
(io.vertx.core.buffer.Buffer body) void
send
(io.vertx.core.buffer.Buffer body, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) void
io.vertx.core.Future<Void>
send
(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> body) void
send
(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> body, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) io.vertx.core.Future<Void>
void
io.vertx.core.Future<Void>
io.vertx.core.Future<Void>
io.vertx.core.Future<Void>
io.vertx.core.http.HttpServerResponse
sendFile
(String filename, long offset, long length, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler) io.vertx.core.http.HttpServerResponse
sendFile
(String filename, long offset, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler) io.vertx.core.http.HttpServerResponse
io.vertx.core.http.HttpServerResponse
setChunked
(boolean chunked) io.vertx.core.http.HttpServerResponse
setStatusCode
(int statusCode) io.vertx.core.http.HttpServerResponse
setStatusMessage
(String statusMessage) io.vertx.core.http.HttpServerResponse
setStreamPriority
(io.vertx.core.http.StreamPriority streamPriority) io.vertx.core.http.HttpServerResponse
setWriteQueueMaxSize
(int maxSize) int
streamId()
io.vertx.core.MultiMap
trailers()
io.vertx.core.Future<Void>
write
(io.vertx.core.buffer.Buffer data) void
write
(io.vertx.core.buffer.Buffer data, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) io.vertx.core.Future<Void>
void
io.vertx.core.Future<Void>
void
io.vertx.core.http.HttpServerResponse
io.vertx.core.http.HttpServerResponse
writeCustomFrame
(int type, int flags, io.vertx.core.buffer.Buffer payload) io.vertx.core.http.HttpServerResponse
writeCustomFrame
(io.vertx.core.http.HttpFrame frame) io.vertx.core.Future<Void>
writeEarlyHints
(io.vertx.core.MultiMap headers) void
writeEarlyHints
(io.vertx.core.MultiMap headers, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) boolean
-
Constructor Details
-
AbstractResponseWrapper
AbstractResponseWrapper(io.vertx.core.http.HttpServerResponse delegate)
-
-
Method Details
-
exceptionHandler
public io.vertx.core.http.HttpServerResponse exceptionHandler(io.vertx.core.Handler<Throwable> handler) - Specified by:
exceptionHandler
in interfaceio.vertx.core.http.HttpServerResponse
- Specified by:
exceptionHandler
in interfaceio.vertx.core.streams.StreamBase
- Specified by:
exceptionHandler
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
write
- Specified by:
write
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
write
public void write(io.vertx.core.buffer.Buffer data, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) - Specified by:
write
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
setWriteQueueMaxSize
public io.vertx.core.http.HttpServerResponse setWriteQueueMaxSize(int maxSize) - Specified by:
setWriteQueueMaxSize
in interfaceio.vertx.core.http.HttpServerResponse
- Specified by:
setWriteQueueMaxSize
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
drainHandler
- Specified by:
drainHandler
in interfaceio.vertx.core.http.HttpServerResponse
- Specified by:
drainHandler
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
getStatusCode
public int getStatusCode()- Specified by:
getStatusCode
in interfaceio.vertx.core.http.HttpServerResponse
-
setStatusCode
public io.vertx.core.http.HttpServerResponse setStatusCode(int statusCode) - Specified by:
setStatusCode
in interfaceio.vertx.core.http.HttpServerResponse
-
getStatusMessage
- Specified by:
getStatusMessage
in interfaceio.vertx.core.http.HttpServerResponse
-
setStatusMessage
- Specified by:
setStatusMessage
in interfaceio.vertx.core.http.HttpServerResponse
-
setChunked
public io.vertx.core.http.HttpServerResponse setChunked(boolean chunked) - Specified by:
setChunked
in interfaceio.vertx.core.http.HttpServerResponse
-
isChunked
public boolean isChunked()- Specified by:
isChunked
in interfaceio.vertx.core.http.HttpServerResponse
-
headers
public io.vertx.core.MultiMap headers()- Specified by:
headers
in interfaceio.vertx.core.http.HttpServerResponse
-
putHeader
- Specified by:
putHeader
in interfaceio.vertx.core.http.HttpServerResponse
-
putHeader
- Specified by:
putHeader
in interfaceio.vertx.core.http.HttpServerResponse
-
putHeader
- Specified by:
putHeader
in interfaceio.vertx.core.http.HttpServerResponse
-
putHeader
public io.vertx.core.http.HttpServerResponse putHeader(CharSequence name, Iterable<CharSequence> values) - Specified by:
putHeader
in interfaceio.vertx.core.http.HttpServerResponse
-
trailers
public io.vertx.core.MultiMap trailers()- Specified by:
trailers
in interfaceio.vertx.core.http.HttpServerResponse
-
putTrailer
- Specified by:
putTrailer
in interfaceio.vertx.core.http.HttpServerResponse
-
putTrailer
- Specified by:
putTrailer
in interfaceio.vertx.core.http.HttpServerResponse
-
putTrailer
- Specified by:
putTrailer
in interfaceio.vertx.core.http.HttpServerResponse
-
putTrailer
public io.vertx.core.http.HttpServerResponse putTrailer(CharSequence name, Iterable<CharSequence> value) - Specified by:
putTrailer
in interfaceio.vertx.core.http.HttpServerResponse
-
closeHandler
- Specified by:
closeHandler
in interfaceio.vertx.core.http.HttpServerResponse
-
endHandler
- Specified by:
endHandler
in interfaceio.vertx.core.http.HttpServerResponse
-
write
- Specified by:
write
in interfaceio.vertx.core.http.HttpServerResponse
-
write
public void write(String chunk, String enc, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) - Specified by:
write
in interfaceio.vertx.core.http.HttpServerResponse
-
write
- Specified by:
write
in interfaceio.vertx.core.http.HttpServerResponse
-
write
- Specified by:
write
in interfaceio.vertx.core.http.HttpServerResponse
-
writeContinue
public io.vertx.core.http.HttpServerResponse writeContinue()- Specified by:
writeContinue
in interfaceio.vertx.core.http.HttpServerResponse
-
writeEarlyHints
- Specified by:
writeEarlyHints
in interfaceio.vertx.core.http.HttpServerResponse
-
writeEarlyHints
public void writeEarlyHints(io.vertx.core.MultiMap headers, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) - Specified by:
writeEarlyHints
in interfaceio.vertx.core.http.HttpServerResponse
-
end
- Specified by:
end
in interfaceio.vertx.core.http.HttpServerResponse
-
end
- Specified by:
end
in interfaceio.vertx.core.http.HttpServerResponse
-
end
- Specified by:
end
in interfaceio.vertx.core.http.HttpServerResponse
-
end
public void end(String chunk, String enc, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) - Specified by:
end
in interfaceio.vertx.core.http.HttpServerResponse
-
end
- Specified by:
end
in interfaceio.vertx.core.http.HttpServerResponse
- Specified by:
end
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
end
public void end(io.vertx.core.buffer.Buffer chunk, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) - Specified by:
end
in interfaceio.vertx.core.http.HttpServerResponse
- Specified by:
end
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
end
- Specified by:
end
in interfaceio.vertx.core.http.HttpServerResponse
- Specified by:
end
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
send
- Specified by:
send
in interfaceio.vertx.core.http.HttpServerResponse
-
send
- Specified by:
send
in interfaceio.vertx.core.http.HttpServerResponse
-
send
- Specified by:
send
in interfaceio.vertx.core.http.HttpServerResponse
-
send
- Specified by:
send
in interfaceio.vertx.core.http.HttpServerResponse
-
send
public void send(io.vertx.core.buffer.Buffer body, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) - Specified by:
send
in interfaceio.vertx.core.http.HttpServerResponse
-
send
- Specified by:
send
in interfaceio.vertx.core.http.HttpServerResponse
-
send
public void send(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> body, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) - Specified by:
send
in interfaceio.vertx.core.http.HttpServerResponse
-
send
public io.vertx.core.Future<Void> send(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> body) - Specified by:
send
in interfaceio.vertx.core.http.HttpServerResponse
-
sendFile
- Specified by:
sendFile
in interfaceio.vertx.core.http.HttpServerResponse
-
sendFile
- Specified by:
sendFile
in interfaceio.vertx.core.http.HttpServerResponse
-
sendFile
- Specified by:
sendFile
in interfaceio.vertx.core.http.HttpServerResponse
-
sendFile
public io.vertx.core.http.HttpServerResponse sendFile(String filename, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler) - Specified by:
sendFile
in interfaceio.vertx.core.http.HttpServerResponse
-
sendFile
public io.vertx.core.http.HttpServerResponse sendFile(String filename, long offset, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler) - Specified by:
sendFile
in interfaceio.vertx.core.http.HttpServerResponse
-
sendFile
public io.vertx.core.http.HttpServerResponse sendFile(String filename, long offset, long length, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler) - Specified by:
sendFile
in interfaceio.vertx.core.http.HttpServerResponse
-
close
Deprecated.- Specified by:
close
in interfaceio.vertx.core.http.HttpServerResponse
-
ended
public boolean ended()- Specified by:
ended
in interfaceio.vertx.core.http.HttpServerResponse
-
closed
public boolean closed()- Specified by:
closed
in interfaceio.vertx.core.http.HttpServerResponse
-
headWritten
public boolean headWritten()- Specified by:
headWritten
in interfaceio.vertx.core.http.HttpServerResponse
-
headersEndHandler
- Specified by:
headersEndHandler
in interfaceio.vertx.core.http.HttpServerResponse
-
bodyEndHandler
- Specified by:
bodyEndHandler
in interfaceio.vertx.core.http.HttpServerResponse
-
bytesWritten
public long bytesWritten()- Specified by:
bytesWritten
in interfaceio.vertx.core.http.HttpServerResponse
-
streamId
public int streamId()- Specified by:
streamId
in interfaceio.vertx.core.http.HttpServerResponse
-
push
public io.vertx.core.http.HttpServerResponse push(io.vertx.core.http.HttpMethod method, String host, String path, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpServerResponse>> handler) - Specified by:
push
in interfaceio.vertx.core.http.HttpServerResponse
-
push
public io.vertx.core.Future<io.vertx.core.http.HttpServerResponse> push(io.vertx.core.http.HttpMethod method, String host, String path) - Specified by:
push
in interfaceio.vertx.core.http.HttpServerResponse
-
push
public io.vertx.core.http.HttpServerResponse push(io.vertx.core.http.HttpMethod method, String path, io.vertx.core.MultiMap headers, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpServerResponse>> handler) - Specified by:
push
in interfaceio.vertx.core.http.HttpServerResponse
-
push
public io.vertx.core.Future<io.vertx.core.http.HttpServerResponse> push(io.vertx.core.http.HttpMethod method, String path, io.vertx.core.MultiMap headers) - Specified by:
push
in interfaceio.vertx.core.http.HttpServerResponse
-
push
public io.vertx.core.http.HttpServerResponse push(io.vertx.core.http.HttpMethod method, String path, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpServerResponse>> handler) - Specified by:
push
in interfaceio.vertx.core.http.HttpServerResponse
-
push
public io.vertx.core.Future<io.vertx.core.http.HttpServerResponse> push(io.vertx.core.http.HttpMethod method, String path) - Specified by:
push
in interfaceio.vertx.core.http.HttpServerResponse
-
push
public io.vertx.core.http.HttpServerResponse push(io.vertx.core.http.HttpMethod method, String host, String path, io.vertx.core.MultiMap headers, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpServerResponse>> handler) - Specified by:
push
in interfaceio.vertx.core.http.HttpServerResponse
-
push
@Deprecated public io.vertx.core.Future<io.vertx.core.http.HttpServerResponse> push(io.vertx.core.http.HttpMethod method, String host, String path, io.vertx.core.MultiMap headers) Deprecated.- Specified by:
push
in interfaceio.vertx.core.http.HttpServerResponse
-
push
public io.vertx.core.Future<io.vertx.core.http.HttpServerResponse> push(io.vertx.core.http.HttpMethod method, io.vertx.core.net.HostAndPort authority, String path, io.vertx.core.MultiMap headers) - Specified by:
push
in interfaceio.vertx.core.http.HttpServerResponse
-
reset
public boolean reset()- Specified by:
reset
in interfaceio.vertx.core.http.HttpServerResponse
-
reset
public boolean reset(long code) - Specified by:
reset
in interfaceio.vertx.core.http.HttpServerResponse
-
writeCustomFrame
public io.vertx.core.http.HttpServerResponse writeCustomFrame(int type, int flags, io.vertx.core.buffer.Buffer payload) - Specified by:
writeCustomFrame
in interfaceio.vertx.core.http.HttpServerResponse
-
writeCustomFrame
public io.vertx.core.http.HttpServerResponse writeCustomFrame(io.vertx.core.http.HttpFrame frame) - Specified by:
writeCustomFrame
in interfaceio.vertx.core.http.HttpServerResponse
-
setStreamPriority
public io.vertx.core.http.HttpServerResponse setStreamPriority(io.vertx.core.http.StreamPriority streamPriority) - Specified by:
setStreamPriority
in interfaceio.vertx.core.http.HttpServerResponse
-
addCookie
public io.vertx.core.http.HttpServerResponse addCookie(io.vertx.core.http.Cookie cookie) - Specified by:
addCookie
in interfaceio.vertx.core.http.HttpServerResponse
-
removeCookie
- Specified by:
removeCookie
in interfaceio.vertx.core.http.HttpServerResponse
-
removeCookie
- Specified by:
removeCookie
in interfaceio.vertx.core.http.HttpServerResponse
-
removeCookies
- Specified by:
removeCookies
in interfaceio.vertx.core.http.HttpServerResponse
-
removeCookies
- Specified by:
removeCookies
in interfaceio.vertx.core.http.HttpServerResponse
-
removeCookie
- Specified by:
removeCookie
in interfaceio.vertx.core.http.HttpServerResponse
-
removeCookie
public io.vertx.core.http.Cookie removeCookie(String name, String domain, String path, boolean invalidate) - Specified by:
removeCookie
in interfaceio.vertx.core.http.HttpServerResponse
-
end
- Specified by:
end
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
writeQueueFull
public boolean writeQueueFull()- Specified by:
writeQueueFull
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-