Class Request


  • public final class Request
    extends java.lang.Object
    HTTP client request.
    • Method Detail

      • url

        public org.xbib.net.URL url()
      • absolute

        public java.lang.String absolute()
      • relative

        public java.lang.String relative()
      • httpVersion

        public io.netty.handler.codec.http.HttpVersion httpVersion()
      • httpMethod

        public io.netty.handler.codec.http.HttpMethod httpMethod()
      • headers

        public io.netty.handler.codec.http.HttpHeaders headers()
      • cookies

        public java.util.Collection<org.xbib.netty.http.common.cookie.Cookie> cookies()
      • content

        public io.netty.buffer.ByteBuf content()
      • getBodyData

        public java.util.List<io.netty.handler.codec.http.multipart.InterfaceHttpData> getBodyData()
      • getTimeoutInMillis

        public long getTimeoutInMillis()
        Return the timeout in milliseconds per request. This overrides the read timeout of the client.
        Returns:
        timeout timeout in milliseconds
      • isFollowRedirect

        public boolean isFollowRedirect()
      • isBackOff

        public boolean isBackOff()
      • getBackOff

        public BackOff getBackOff()
      • canRedirect

        public boolean canRedirect()
      • release

        public void release()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • setCompletableFuture

        public Request setCompletableFuture​(java.util.concurrent.CompletableFuture<Request> completableFuture)
      • getCompletableFuture

        public java.util.concurrent.CompletableFuture<Request> getCompletableFuture()
      • setResponseListener

        public void setResponseListener​(ResponseListener<org.xbib.netty.http.common.HttpResponse> responseListener)
      • onResponse

        public void onResponse​(org.xbib.netty.http.common.HttpResponse httpResponse)
      • builder

        public static Request.Builder builder​(io.netty.handler.codec.http.HttpMethod httpMethod)
      • builder

        public static Request.Builder builder​(io.netty.handler.codec.http.HttpMethod httpMethod,
                                              Request request)
      • builder

        public static Request.Builder builder​(io.netty.buffer.ByteBufAllocator allocator,
                                              io.netty.handler.codec.http.HttpMethod httpMethod)