test_class.file: karate-core/src/test/java/com/intuit/karate/http/HttpRequestBuilderTest.java
test_class.identifier: HttpRequestBuilderTest
test_case.body: @Test
      public void testGetUrlAndPath() {
          HttpRequestBuilder request = new HttpRequestBuilder();
          request.setUrl("http://foo");
          assertEquals("http://foo/", request.getUrlAndPath());
          request = new HttpRequestBuilder();
          request.setUrl("http://foo");
          request.addPath("bar");
          request.addPath("baz");
          assertEquals("http://foo/bar/baz", request.getUrlAndPath());      
      }
test_case.class_method_signature: HttpRequestBuilderTest.testGetUrlAndPath()
test_case.full_signature: @Test public void testGetUrlAndPath()
test_case.identifier: testGetUrlAndPath
test_case.invocations: setUrl assertEquals getUrlAndPath setUrl addPath addPath assertEquals getUrlAndPath
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetUrlAndPath()
focal_class.declarator: url
focal_class.modifier: private
focal_class.original_string: private String url;
focal_class.type: String
focal_class.var_name: url
focal_class.declarator: paths
focal_class.modifier: private
focal_class.original_string: private List<String> paths;
focal_class.type: List<String>
focal_class.var_name: paths
focal_class.declarator: headers
focal_class.modifier: private
focal_class.original_string: private MultiValuedMap headers;
focal_class.type: MultiValuedMap
focal_class.var_name: headers
focal_class.declarator: params
focal_class.modifier: private
focal_class.original_string: private MultiValuedMap params;
focal_class.type: MultiValuedMap
focal_class.var_name: params
focal_class.declarator: cookies
focal_class.modifier: private
focal_class.original_string: private Map<String, Cookie> cookies;
focal_class.type: Map<String, Cookie>
focal_class.var_name: cookies
focal_class.declarator: formFields
focal_class.modifier: private
focal_class.original_string: private MultiValuedMap formFields;
focal_class.type: MultiValuedMap
focal_class.var_name: formFields
focal_class.declarator: multiPartItems
focal_class.modifier: private
focal_class.original_string: private List<MultiPartItem> multiPartItems;
focal_class.type: List<MultiPartItem>
focal_class.var_name: multiPartItems
focal_class.declarator: body
focal_class.modifier: private
focal_class.original_string: private ScriptValue body;
focal_class.type: ScriptValue
focal_class.var_name: body
focal_class.declarator: method
focal_class.modifier: private
focal_class.original_string: private String method;
focal_class.type: String
focal_class.var_name: method
focal_class.declarator: soapAction
focal_class.modifier: private
focal_class.original_string: private String soapAction;
focal_class.type: String
focal_class.var_name: soapAction
focal_class.declarator: retryUntil
focal_class.modifier: private
focal_class.original_string: private String retryUntil;
focal_class.type: String
focal_class.var_name: retryUntil
focal_class.file: karate-core/src/main/java/com/intuit/karate/http/HttpRequestBuilder.java
focal_class.identifier: HttpRequestBuilder
focal_class.class_method_signature: HttpRequestBuilder.copy()
focal_class.full_signature: public HttpRequestBuilder copy()
focal_class.identifier: copy
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: HttpRequestBuilder
focal_class.signature: HttpRequestBuilder copy()
focal_class.class_method_signature: HttpRequestBuilder.setUrl(String url)
focal_class.full_signature: public void setUrl(String url)
focal_class.identifier: setUrl
focal_class.modifiers: public
focal_class.parameters: (String url)
focal_class.return: void
focal_class.signature: void setUrl(String url)
focal_class.class_method_signature: HttpRequestBuilder.getUrl()
focal_class.full_signature: public String getUrl()
focal_class.identifier: getUrl
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getUrl()
focal_class.class_method_signature: HttpRequestBuilder.getFirst(MultiValuedMap map, String name)
focal_class.full_signature: private static String getFirst(MultiValuedMap map, String name)
focal_class.identifier: getFirst
focal_class.modifiers: private static
focal_class.parameters: (MultiValuedMap map, String name)
focal_class.return: String
focal_class.signature: String getFirst(MultiValuedMap map, String name)
focal_class.class_method_signature: HttpRequestBuilder.getHeader(String name)
focal_class.full_signature: public String getHeader(String name)
focal_class.identifier: getHeader
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: String
focal_class.signature: String getHeader(String name)
focal_class.class_method_signature: HttpRequestBuilder.getParam(String name)
focal_class.full_signature: public String getParam(String name)
focal_class.identifier: getParam
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: String
focal_class.signature: String getParam(String name)
focal_class.class_method_signature: HttpRequestBuilder.getUrlAndPath()
focal_class.full_signature: public String getUrlAndPath()
focal_class.identifier: getUrlAndPath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getUrlAndPath()
focal_class.class_method_signature: HttpRequestBuilder.addPath(String path)
focal_class.full_signature: public void addPath(String path)
focal_class.identifier: addPath
focal_class.modifiers: public
focal_class.parameters: (String path)
focal_class.return: void
focal_class.signature: void addPath(String path)
focal_class.class_method_signature: HttpRequestBuilder.getPaths()
focal_class.full_signature: public List<String> getPaths()
focal_class.identifier: getPaths
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getPaths()
focal_class.class_method_signature: HttpRequestBuilder.removeHeader(String name)
focal_class.full_signature: public void removeHeader(String name)
focal_class.identifier: removeHeader
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: void
focal_class.signature: void removeHeader(String name)
focal_class.class_method_signature: HttpRequestBuilder.removeHeaderIgnoreCase(String name)
focal_class.full_signature: public void removeHeaderIgnoreCase(String name)
focal_class.identifier: removeHeaderIgnoreCase
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: void
focal_class.signature: void removeHeaderIgnoreCase(String name)
focal_class.class_method_signature: HttpRequestBuilder.setHeaders(MultiValuedMap headers)
focal_class.full_signature: public void setHeaders(MultiValuedMap headers)
focal_class.identifier: setHeaders
focal_class.modifiers: public
focal_class.parameters: (MultiValuedMap headers)
focal_class.return: void
focal_class.signature: void setHeaders(MultiValuedMap headers)
focal_class.class_method_signature: HttpRequestBuilder.setHeader(String name, Object value)
focal_class.full_signature: public void setHeader(String name, Object value)
focal_class.identifier: setHeader
focal_class.modifiers: public
focal_class.parameters: (String name, Object value)
focal_class.return: void
focal_class.signature: void setHeader(String name, Object value)
focal_class.class_method_signature: HttpRequestBuilder.setHeader(String name, String value)
focal_class.full_signature: public void setHeader(String name, String value)
focal_class.identifier: setHeader
focal_class.modifiers: public
focal_class.parameters: (String name, String value)
focal_class.return: void
focal_class.signature: void setHeader(String name, String value)
focal_class.class_method_signature: HttpRequestBuilder.setHeader(String name, List<String> values)
focal_class.full_signature: public void setHeader(String name, List<String> values)
focal_class.identifier: setHeader
focal_class.modifiers: public
focal_class.parameters: (String name, List<String> values)
focal_class.return: void
focal_class.signature: void setHeader(String name, List<String> values)
focal_class.class_method_signature: HttpRequestBuilder.getHeaders()
focal_class.full_signature: public MultiValuedMap getHeaders()
focal_class.identifier: getHeaders
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: MultiValuedMap
focal_class.signature: MultiValuedMap getHeaders()
focal_class.class_method_signature: HttpRequestBuilder.removeParam(String name)
focal_class.full_signature: public void removeParam(String name)
focal_class.identifier: removeParam
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: void
focal_class.signature: void removeParam(String name)
focal_class.class_method_signature: HttpRequestBuilder.setParam(String name, String value)
focal_class.full_signature: public void setParam(String name, String value)
focal_class.identifier: setParam
focal_class.modifiers: public
focal_class.parameters: (String name, String value)
focal_class.return: void
focal_class.signature: void setParam(String name, String value)
focal_class.class_method_signature: HttpRequestBuilder.setParam(String name, List<String> values)
focal_class.full_signature: public void setParam(String name, List<String> values)
focal_class.identifier: setParam
focal_class.modifiers: public
focal_class.parameters: (String name, List<String> values)
focal_class.return: void
focal_class.signature: void setParam(String name, List<String> values)
focal_class.class_method_signature: HttpRequestBuilder.getParams()
focal_class.full_signature: public MultiValuedMap getParams()
focal_class.identifier: getParams
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: MultiValuedMap
focal_class.signature: MultiValuedMap getParams()
focal_class.class_method_signature: HttpRequestBuilder.removeCookie(String name)
focal_class.full_signature: public void removeCookie(String name)
focal_class.identifier: removeCookie
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: void
focal_class.signature: void removeCookie(String name)
focal_class.class_method_signature: HttpRequestBuilder.setCookie(Cookie cookie)
focal_class.full_signature: public void setCookie(Cookie cookie)
focal_class.identifier: setCookie
focal_class.modifiers: public
focal_class.parameters: (Cookie cookie)
focal_class.return: void
focal_class.signature: void setCookie(Cookie cookie)
focal_class.class_method_signature: HttpRequestBuilder.getCookies()
focal_class.full_signature: public Map<String, Cookie> getCookies()
focal_class.identifier: getCookies
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, Cookie>
focal_class.signature: Map<String, Cookie> getCookies()
focal_class.class_method_signature: HttpRequestBuilder.setCookies(Map<String, Cookie> cookies)
focal_class.full_signature: public void setCookies(Map<String, Cookie> cookies)
focal_class.identifier: setCookies
focal_class.modifiers: public
focal_class.parameters: (Map<String, Cookie> cookies)
focal_class.return: void
focal_class.signature: void setCookies(Map<String, Cookie> cookies)
focal_class.class_method_signature: HttpRequestBuilder.removeFormField(String name)
focal_class.full_signature: public void removeFormField(String name)
focal_class.identifier: removeFormField
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: void
focal_class.signature: void removeFormField(String name)
focal_class.class_method_signature: HttpRequestBuilder.setFormField(String name, String value)
focal_class.full_signature: public void setFormField(String name, String value)
focal_class.identifier: setFormField
focal_class.modifiers: public
focal_class.parameters: (String name, String value)
focal_class.return: void
focal_class.signature: void setFormField(String name, String value)
focal_class.class_method_signature: HttpRequestBuilder.setFormField(String name, List<String> values)
focal_class.full_signature: public void setFormField(String name, List<String> values)
focal_class.identifier: setFormField
focal_class.modifiers: public
focal_class.parameters: (String name, List<String> values)
focal_class.return: void
focal_class.signature: void setFormField(String name, List<String> values)
focal_class.class_method_signature: HttpRequestBuilder.getFormFields()
focal_class.full_signature: public MultiValuedMap getFormFields()
focal_class.identifier: getFormFields
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: MultiValuedMap
focal_class.signature: MultiValuedMap getFormFields()
focal_class.class_method_signature: HttpRequestBuilder.addMultiPartItem(String name, ScriptValue value)
focal_class.full_signature: public void addMultiPartItem(String name, ScriptValue value)
focal_class.identifier: addMultiPartItem
focal_class.modifiers: public
focal_class.parameters: (String name, ScriptValue value)
focal_class.return: void
focal_class.signature: void addMultiPartItem(String name, ScriptValue value)
focal_class.class_method_signature: HttpRequestBuilder.addMultiPartItem(MultiPartItem item)
focal_class.full_signature: public void addMultiPartItem(MultiPartItem item)
focal_class.identifier: addMultiPartItem
focal_class.modifiers: public
focal_class.parameters: (MultiPartItem item)
focal_class.return: void
focal_class.signature: void addMultiPartItem(MultiPartItem item)
focal_class.class_method_signature: HttpRequestBuilder.getMultiPartItems()
focal_class.full_signature: public List<MultiPartItem> getMultiPartItems()
focal_class.identifier: getMultiPartItems
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<MultiPartItem>
focal_class.signature: List<MultiPartItem> getMultiPartItems()
focal_class.class_method_signature: HttpRequestBuilder.getBody()
focal_class.full_signature: public ScriptValue getBody()
focal_class.identifier: getBody
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ScriptValue
focal_class.signature: ScriptValue getBody()
focal_class.class_method_signature: HttpRequestBuilder.setBody(ScriptValue body)
focal_class.full_signature: public void setBody(ScriptValue body)
focal_class.identifier: setBody
focal_class.modifiers: public
focal_class.parameters: (ScriptValue body)
focal_class.return: void
focal_class.signature: void setBody(ScriptValue body)
focal_class.class_method_signature: HttpRequestBuilder.setMethod(String method)
focal_class.full_signature: public void setMethod(String method)
focal_class.identifier: setMethod
focal_class.modifiers: public
focal_class.parameters: (String method)
focal_class.return: void
focal_class.signature: void setMethod(String method)
focal_class.class_method_signature: HttpRequestBuilder.getMethod()
focal_class.full_signature: public String getMethod()
focal_class.identifier: getMethod
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getMethod()
focal_class.class_method_signature: HttpRequestBuilder.getContentType()
focal_class.full_signature: public String getContentType()
focal_class.identifier: getContentType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getContentType()
focal_class.class_method_signature: HttpRequestBuilder.setSoapAction(String soapAction)
focal_class.full_signature: public void setSoapAction(String soapAction)
focal_class.identifier: setSoapAction
focal_class.modifiers: public
focal_class.parameters: (String soapAction)
focal_class.return: void
focal_class.signature: void setSoapAction(String soapAction)
focal_class.class_method_signature: HttpRequestBuilder.getSoapAction()
focal_class.full_signature: public String getSoapAction()
focal_class.identifier: getSoapAction
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getSoapAction()
focal_class.class_method_signature: HttpRequestBuilder.isRetry()
focal_class.full_signature: public boolean isRetry()
focal_class.identifier: isRetry
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isRetry()
focal_class.class_method_signature: HttpRequestBuilder.getRetryUntil()
focal_class.full_signature: public String getRetryUntil()
focal_class.identifier: getRetryUntil
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRetryUntil()
focal_class.class_method_signature: HttpRequestBuilder.setRetryUntil(String retryUntil)
focal_class.full_signature: public void setRetryUntil(String retryUntil)
focal_class.identifier: setRetryUntil
focal_class.modifiers: public
focal_class.parameters: (String retryUntil)
focal_class.return: void
focal_class.signature: void setRetryUntil(String retryUntil)
focal_method.body: public String getUrlAndPath() {
          String temp = url;
          if (paths == null) {
              if (!temp.endsWith("/")) {
                  temp = temp + "/";
              }
              return temp;
          }
          for (String path : paths) {
              if (path.startsWith("/")) {
                  path = path.substring(1);
              }
              if (!temp.endsWith("/")) {
                  temp = temp + "/";
              }
              temp = temp + path;
          }
          return temp;
      }
focal_method.class_method_signature: HttpRequestBuilder.getUrlAndPath()
focal_method.full_signature: public String getUrlAndPath()
focal_method.identifier: getUrlAndPath
focal_method.invocations: endsWith startsWith substring endsWith
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getUrlAndPath()