public abstract class RequestImpl extends java.lang.Object implements Request
| Modifier and Type | Field and Description |
|---|---|
protected Deserializer |
deserializer |
protected net.eusashead.parquet.entity.EntityFactory |
entityFactory |
protected ErrorResponseBuilder |
errorResponseBuilder |
protected HashStrategy |
hashStrategy |
protected RequestHeaders |
headers |
protected org.vertx.java.core.logging.Logger |
logger |
protected MediaTypeStrategy |
mediaTypeStrategy |
protected com.jetdrone.vertx.yoke.middleware.YokeRequest |
request |
protected Response |
response |
protected Serializer |
serializer |
| Constructor and Description |
|---|
RequestImpl(com.jetdrone.vertx.yoke.middleware.YokeRequest request,
Deserializer deserializer,
Serializer serializer,
net.eusashead.parquet.entity.EntityFactory entityFactory,
MediaTypeStrategy mediaTypeStrategy,
HashStrategy hashStrategy,
org.vertx.java.core.logging.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
java.net.URI |
absoluteURI() |
java.util.Set<AcceptableCharset> |
acceptableCharsets()
Get the acceptable
Charset
for the request in priority
order (q) |
java.util.Set<AcceptableContentType> |
acceptableContentType()
Get the acceptable Content-Type
ContentType
for the request in priority order (q) |
java.util.Set<AcceptableLanguage> |
acceptableLanguages()
Get the acceptable
Locale
for the request in priority
order (q) |
java.util.Set<AcceptableMediaType> |
acceptableMediaType()
Get the acceptable media types
MediaType
for the request in priority
order (q) using the MediaTypeStrategy
registered for this RequestHeaders |
RequestImpl |
bodyHandler(org.vertx.java.core.Handler<org.vertx.java.core.buffer.Buffer> bodyHandler) |
java.util.Set<com.jetdrone.vertx.yoke.middleware.YokeCookie> |
cookies() |
RequestImpl |
dataHandler(org.vertx.java.core.Handler<org.vertx.java.core.buffer.Buffer> handler) |
RequestImpl |
endHandler(org.vertx.java.core.Handler<java.lang.Void> endHandler) |
ErrorResponseBuilder |
error(HttpStatus status)
Get a
ErrorResponseBuilder
for building an error response |
RequestImpl |
exceptionHandler(org.vertx.java.core.Handler<java.lang.Throwable> handler) |
RequestImpl |
expectMultiPart(boolean expect) |
org.vertx.java.core.MultiMap |
formAttributes() |
<R> R |
get(java.lang.String name) |
<R> R |
get(java.lang.String name,
R defaultValue) |
java.util.List<com.jetdrone.vertx.yoke.middleware.YokeCookie> |
getAllCookies(java.lang.String name) |
java.util.List<java.lang.String> |
getAllHeaders(java.lang.String name) |
com.jetdrone.vertx.yoke.middleware.YokeCookie |
getCookie(java.lang.String name) |
java.lang.String |
getHeader(java.lang.String name) |
java.lang.String |
getHeader(java.lang.String name,
java.lang.String defaultValue) |
RequestHeaders |
headers() |
java.net.InetSocketAddress |
localAddress() |
org.vertx.java.core.logging.Logger |
logger()
Get the Vert.x
Logger |
java.lang.String |
method() |
org.vertx.java.core.net.NetSocket |
netSocket() |
org.vertx.java.core.MultiMap |
params() |
java.lang.String |
path() |
RequestImpl |
pause() |
javax.security.cert.X509Certificate[] |
peerCertificateChain() |
<R> R |
put(java.lang.String name,
R value) |
java.lang.String |
query() |
java.net.InetSocketAddress |
remoteAddress() |
Response |
response() |
RequestImpl |
resume() |
RequestImpl |
uploadHandler(org.vertx.java.core.Handler<org.vertx.java.core.http.HttpServerFileUpload> uploadHandler) |
java.lang.String |
uri() |
org.vertx.java.core.http.HttpVersion |
version() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresponseBuilderprotected final com.jetdrone.vertx.yoke.middleware.YokeRequest request
protected final RequestHeaders headers
protected final Deserializer deserializer
protected final Serializer serializer
protected final net.eusashead.parquet.entity.EntityFactory entityFactory
protected final MediaTypeStrategy mediaTypeStrategy
protected final HashStrategy hashStrategy
protected final Response response
protected final org.vertx.java.core.logging.Logger logger
protected final ErrorResponseBuilder errorResponseBuilder
public RequestImpl(com.jetdrone.vertx.yoke.middleware.YokeRequest request,
Deserializer deserializer,
Serializer serializer,
net.eusashead.parquet.entity.EntityFactory entityFactory,
MediaTypeStrategy mediaTypeStrategy,
HashStrategy hashStrategy,
org.vertx.java.core.logging.Logger logger)
public RequestHeaders headers()
public org.vertx.java.core.MultiMap params()
params in interface org.vertx.java.core.http.HttpServerRequestpublic org.vertx.java.core.logging.Logger logger()
RequestLoggerpublic ErrorResponseBuilder error(HttpStatus status)
RequestErrorResponseBuilder
for building an error responseerror in interface RequestErrorResponseBuilder instancepublic java.util.Set<AcceptableCharset> acceptableCharsets()
Charset
for the request in priority
order (q)acceptableCharsets in interface RequestSet of AcceptableCharsetResponseExceptionpublic java.util.Set<AcceptableLanguage> acceptableLanguages()
Locale
for the request in priority
order (q)acceptableLanguages in interface RequestSet of AcceptableLanguageResponseExceptionpublic java.util.Set<AcceptableMediaType> acceptableMediaType()
RequestMediaType
for the request in priority
order (q) using the MediaTypeStrategy
registered for this RequestHeadersacceptableMediaType in interface RequestSet of AcceptableMediaTypepublic java.util.Set<AcceptableContentType> acceptableContentType()
RequestContentType
for the request in priority order (q)acceptableContentType in interface RequestSet of AcceptableContentTypepublic Response response()
public org.vertx.java.core.http.HttpVersion version()
version in interface org.vertx.java.core.http.HttpServerRequestpublic java.lang.String method()
method in interface org.vertx.java.core.http.HttpServerRequestpublic java.lang.String uri()
uri in interface org.vertx.java.core.http.HttpServerRequestpublic java.lang.String path()
path in interface org.vertx.java.core.http.HttpServerRequestpublic java.lang.String query()
query in interface org.vertx.java.core.http.HttpServerRequestpublic java.net.InetSocketAddress remoteAddress()
remoteAddress in interface org.vertx.java.core.http.HttpServerRequestpublic java.net.InetSocketAddress localAddress()
localAddress in interface org.vertx.java.core.http.HttpServerRequestpublic javax.security.cert.X509Certificate[] peerCertificateChain()
throws javax.net.ssl.SSLPeerUnverifiedException
peerCertificateChain in interface org.vertx.java.core.http.HttpServerRequestjavax.net.ssl.SSLPeerUnverifiedExceptionpublic java.net.URI absoluteURI()
absoluteURI in interface org.vertx.java.core.http.HttpServerRequestpublic RequestImpl bodyHandler(org.vertx.java.core.Handler<org.vertx.java.core.buffer.Buffer> bodyHandler)
bodyHandler in interface org.vertx.java.core.http.HttpServerRequestpublic org.vertx.java.core.net.NetSocket netSocket()
netSocket in interface org.vertx.java.core.http.HttpServerRequestpublic RequestImpl expectMultiPart(boolean expect)
expectMultiPart in interface org.vertx.java.core.http.HttpServerRequestpublic RequestImpl uploadHandler(org.vertx.java.core.Handler<org.vertx.java.core.http.HttpServerFileUpload> uploadHandler)
uploadHandler in interface org.vertx.java.core.http.HttpServerRequestpublic org.vertx.java.core.MultiMap formAttributes()
formAttributes in interface org.vertx.java.core.http.HttpServerRequestpublic RequestImpl endHandler(org.vertx.java.core.Handler<java.lang.Void> endHandler)
endHandler in interface org.vertx.java.core.streams.ReadStream<org.vertx.java.core.http.HttpServerRequest>public RequestImpl dataHandler(org.vertx.java.core.Handler<org.vertx.java.core.buffer.Buffer> handler)
dataHandler in interface org.vertx.java.core.streams.ReadSupport<org.vertx.java.core.http.HttpServerRequest,org.vertx.java.core.buffer.Buffer>public RequestImpl pause()
pause in interface org.vertx.java.core.streams.ReadSupport<org.vertx.java.core.http.HttpServerRequest,org.vertx.java.core.buffer.Buffer>public RequestImpl resume()
resume in interface org.vertx.java.core.streams.ReadSupport<org.vertx.java.core.http.HttpServerRequest,org.vertx.java.core.buffer.Buffer>public RequestImpl exceptionHandler(org.vertx.java.core.Handler<java.lang.Throwable> handler)
exceptionHandler in interface org.vertx.java.core.streams.ExceptionSupport<org.vertx.java.core.http.HttpServerRequest>public <R> R get(java.lang.String name)
public <R> R get(java.lang.String name,
R defaultValue)
public <R> R put(java.lang.String name,
R value)
public java.lang.String getHeader(java.lang.String name)
public java.util.List<java.lang.String> getAllHeaders(java.lang.String name)
getAllHeaders in interface RequestYokeRequest.getAllHeaders(String)public java.lang.String getHeader(java.lang.String name,
java.lang.String defaultValue)
public java.util.Set<com.jetdrone.vertx.yoke.middleware.YokeCookie> cookies()
public com.jetdrone.vertx.yoke.middleware.YokeCookie getCookie(java.lang.String name)
public java.util.List<com.jetdrone.vertx.yoke.middleware.YokeCookie> getAllCookies(java.lang.String name)
getAllCookies in interface RequestYokeRequest.getAllCookies(String)