Class Route.ResumeOptions

  • Enclosing interface:
    Route

    public static class Route.ResumeOptions
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.Map<java.lang.String,​java.lang.String> headers
      If set changes the request HTTP headers.
      java.lang.String method
      If set changes the request method (e.g.
      java.lang.Object postData
      If set changes the post data of request.
      java.lang.String url
      If set changes the request URL.
    • Constructor Summary

      Constructors 
      Constructor Description
      ResumeOptions()  
    • Field Detail

      • headers

        public java.util.Map<java.lang.String,​java.lang.String> headers
        If set changes the request HTTP headers. Header values will be converted to a string.
      • method

        public java.lang.String method
        If set changes the request method (e.g. GET or POST).
      • postData

        public java.lang.Object postData
        If set changes the post data of request.
      • url

        public java.lang.String url
        If set changes the request URL. New URL must have same protocol as original one.
    • Constructor Detail

      • ResumeOptions

        public ResumeOptions()
    • Method Detail

      • setHeaders

        public Route.ResumeOptions setHeaders​(java.util.Map<java.lang.String,​java.lang.String> headers)
        If set changes the request HTTP headers. Header values will be converted to a string.
      • setMethod

        public Route.ResumeOptions setMethod​(java.lang.String method)
        If set changes the request method (e.g. GET or POST).
      • setPostData

        public Route.ResumeOptions setPostData​(java.lang.String postData)
        If set changes the post data of request.
      • setPostData

        public Route.ResumeOptions setPostData​(byte[] postData)
        If set changes the post data of request.
      • setUrl

        public Route.ResumeOptions setUrl​(java.lang.String url)
        If set changes the request URL. New URL must have same protocol as original one.