test_class.file: modules/flowable-http-common/src/test/java/org/flowable/http/common/api/HttpHeadersTest.java
test_class.identifier: HttpHeadersTest
test_case.body: @Test
      void parseFromInvalidStringHeader() {
          assertThatThrownBy(() -> HttpHeaders.parseFromString("Content-Type"))
                  .isInstanceOf(FlowableIllegalArgumentException.class)
                  .hasMessage("Header line 'Content-Type' is invalid");
      }
test_case.class_method_signature: HttpHeadersTest.parseFromInvalidStringHeader()
test_case.full_signature: @Test void parseFromInvalidStringHeader()
test_case.identifier: parseFromInvalidStringHeader
test_case.invocations: hasMessage isInstanceOf assertThatThrownBy parseFromString
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void parseFromInvalidStringHeader()
focal_class.declarator: headers
focal_class.modifier: protected final
focal_class.original_string: protected final Map<String, List<String>> headers;
focal_class.type: Map<String, List<String>>
focal_class.var_name: headers
focal_class.declarator: rawStringHeaders
focal_class.modifier: protected final
focal_class.original_string: protected final String rawStringHeaders;
focal_class.type: String
focal_class.var_name: rawStringHeaders
focal_class.file: modules/flowable-http-common/src/main/java/org/flowable/http/common/api/HttpHeaders.java
focal_class.identifier: HttpHeaders
focal_class.interfaces: implements Map<String, List<String>>
focal_class.class_method_signature: HttpHeaders.HttpHeaders()
focal_class.full_signature: public  HttpHeaders()
focal_class.identifier: HttpHeaders
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  HttpHeaders()
focal_class.class_method_signature: HttpHeaders.HttpHeaders(String rawStringHeaders)
focal_class.full_signature: protected  HttpHeaders(String rawStringHeaders)
focal_class.identifier: HttpHeaders
focal_class.modifiers: protected
focal_class.parameters: (String rawStringHeaders)
focal_class.signature:  HttpHeaders(String rawStringHeaders)
focal_class.class_method_signature: HttpHeaders.size()
focal_class.full_signature: @Override public int size()
focal_class.identifier: size
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int size()
focal_class.class_method_signature: HttpHeaders.isEmpty()
focal_class.full_signature: @Override public boolean isEmpty()
focal_class.identifier: isEmpty
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEmpty()
focal_class.class_method_signature: HttpHeaders.containsKey(Object key)
focal_class.full_signature: @Override public boolean containsKey(Object key)
focal_class.identifier: containsKey
focal_class.modifiers: @Override public
focal_class.parameters: (Object key)
focal_class.return: boolean
focal_class.signature: boolean containsKey(Object key)
focal_class.class_method_signature: HttpHeaders.containsValue(Object value)
focal_class.full_signature: @Override public boolean containsValue(Object value)
focal_class.identifier: containsValue
focal_class.modifiers: @Override public
focal_class.parameters: (Object value)
focal_class.return: boolean
focal_class.signature: boolean containsValue(Object value)
focal_class.class_method_signature: HttpHeaders.get(Object key)
focal_class.full_signature: @Override public List<String> get(Object key)
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: (Object key)
focal_class.return: List<String>
focal_class.signature: List<String> get(Object key)
focal_class.class_method_signature: HttpHeaders.put(String key, List<String> value)
focal_class.full_signature: @Override public List<String> put(String key, List<String> value)
focal_class.identifier: put
focal_class.modifiers: @Override public
focal_class.parameters: (String key, List<String> value)
focal_class.return: List<String>
focal_class.signature: List<String> put(String key, List<String> value)
focal_class.class_method_signature: HttpHeaders.remove(Object key)
focal_class.full_signature: @Override public List<String> remove(Object key)
focal_class.identifier: remove
focal_class.modifiers: @Override public
focal_class.parameters: (Object key)
focal_class.return: List<String>
focal_class.signature: List<String> remove(Object key)
focal_class.class_method_signature: HttpHeaders.putAll(Map<? extends String, ? extends List<String>> m)
focal_class.full_signature: @Override public void putAll(Map<? extends String, ? extends List<String>> m)
focal_class.identifier: putAll
focal_class.modifiers: @Override public
focal_class.parameters: (Map<? extends String, ? extends List<String>> m)
focal_class.return: void
focal_class.signature: void putAll(Map<? extends String, ? extends List<String>> m)
focal_class.class_method_signature: HttpHeaders.clear()
focal_class.full_signature: @Override public void clear()
focal_class.identifier: clear
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: HttpHeaders.keySet()
focal_class.full_signature: @Override public Set<String> keySet()
focal_class.identifier: keySet
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Set<String>
focal_class.signature: Set<String> keySet()
focal_class.class_method_signature: HttpHeaders.values()
focal_class.full_signature: @Override public Collection<List<String>> values()
focal_class.identifier: values
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Collection<List<String>>
focal_class.signature: Collection<List<String>> values()
focal_class.class_method_signature: HttpHeaders.entrySet()
focal_class.full_signature: @Override public Set<Entry<String, List<String>>> entrySet()
focal_class.identifier: entrySet
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Set<Entry<String, List<String>>>
focal_class.signature: Set<Entry<String, List<String>>> entrySet()
focal_class.class_method_signature: HttpHeaders.add(String headerName, String headerValue)
focal_class.full_signature: public void add(String headerName, String headerValue)
focal_class.identifier: add
focal_class.modifiers: public
focal_class.parameters: (String headerName, String headerValue)
focal_class.return: void
focal_class.signature: void add(String headerName, String headerValue)
focal_class.class_method_signature: HttpHeaders.formatAsString()
focal_class.full_signature: public String formatAsString()
focal_class.identifier: formatAsString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String formatAsString()
focal_class.class_method_signature: HttpHeaders.parseFromString(String headersString)
focal_class.full_signature: public static HttpHeaders parseFromString(String headersString)
focal_class.identifier: parseFromString
focal_class.modifiers: public static
focal_class.parameters: (String headersString)
focal_class.return: HttpHeaders
focal_class.signature: HttpHeaders parseFromString(String headersString)
focal_method.body: public static HttpHeaders parseFromString(String headersString) {
          HttpHeaders headers = new HttpHeaders(headersString);
  
          if (StringUtils.isNotEmpty(headersString)) {
              try (BufferedReader reader = new BufferedReader(new StringReader(headersString))) {
                  String line = reader.readLine();
                  while (line != null) {
                      int colonIndex = line.indexOf(':');
                      if (colonIndex > 0) {
                          String headerName = line.substring(0, colonIndex);
                          if (line.length() > colonIndex + 2) {
                              headers.add(headerName, StringUtils.strip(line.substring(colonIndex + 1)));
                          } else {
                              headers.add(headerName, "");
                          }
                          line = reader.readLine();
  
                      } else {
                          throw new FlowableIllegalArgumentException("Header line '" + line + "' is invalid");
                      }
                  }
              } catch (IOException ex) {
                  throw new FlowableException("IO exception occurred", ex);
              }
          }
  
          return headers;
      }
focal_method.class_method_signature: HttpHeaders.parseFromString(String headersString)
focal_method.full_signature: public static HttpHeaders parseFromString(String headersString)
focal_method.identifier: parseFromString
focal_method.invocations: isNotEmpty readLine indexOf substring length add strip substring add readLine
focal_method.modifiers: public static
focal_method.parameters: (String headersString)
focal_method.return: HttpHeaders
focal_method.signature: HttpHeaders parseFromString(String headersString)