Class Http1Headers

java.lang.Object
cool.scx.http.x.http1.headers.Http1Headers
All Implemented Interfaces:
cool.scx.http.headers.ScxHttpHeaders, cool.scx.http.headers.ScxHttpHeadersWritable, cool.scx.http.parameters.Parameters<cool.scx.http.headers.ScxHttpHeaderName, String>, cool.scx.http.parameters.ParametersWritable<cool.scx.http.headers.ScxHttpHeaderName, String>, Iterable<cool.scx.http.parameters.ParameterEntry<cool.scx.http.headers.ScxHttpHeaderName, String>>

public class Http1Headers extends Object implements cool.scx.http.headers.ScxHttpHeadersWritable
  • Constructor Details

    • Http1Headers

      public Http1Headers(cool.scx.http.headers.ScxHttpHeaders h)
    • Http1Headers

      public Http1Headers()
  • Method Details

    • set

      public Http1Headers set(cool.scx.http.headers.ScxHttpHeaderName name, String... value)
      Specified by:
      set in interface cool.scx.http.parameters.ParametersWritable<cool.scx.http.headers.ScxHttpHeaderName, String>
      Specified by:
      set in interface cool.scx.http.headers.ScxHttpHeadersWritable
    • add

      public Http1Headers add(cool.scx.http.headers.ScxHttpHeaderName name, String... value)
      Specified by:
      add in interface cool.scx.http.parameters.ParametersWritable<cool.scx.http.headers.ScxHttpHeaderName, String>
      Specified by:
      add in interface cool.scx.http.headers.ScxHttpHeadersWritable
    • remove

      public Http1Headers remove(cool.scx.http.headers.ScxHttpHeaderName name)
      Specified by:
      remove in interface cool.scx.http.parameters.ParametersWritable<cool.scx.http.headers.ScxHttpHeaderName, String>
      Specified by:
      remove in interface cool.scx.http.headers.ScxHttpHeadersWritable
    • clear

      public Http1Headers clear()
      Specified by:
      clear in interface cool.scx.http.parameters.ParametersWritable<cool.scx.http.headers.ScxHttpHeaderName, String>
      Specified by:
      clear in interface cool.scx.http.headers.ScxHttpHeadersWritable
    • size

      public long size()
      Specified by:
      size in interface cool.scx.http.parameters.Parameters<cool.scx.http.headers.ScxHttpHeaderName, String>
    • names

      public Set<cool.scx.http.headers.ScxHttpHeaderName> names()
      Specified by:
      names in interface cool.scx.http.parameters.Parameters<cool.scx.http.headers.ScxHttpHeaderName, String>
    • get

      public String get(cool.scx.http.headers.ScxHttpHeaderName name)
      Specified by:
      get in interface cool.scx.http.parameters.Parameters<cool.scx.http.headers.ScxHttpHeaderName, String>
    • getAll

      public List<String> getAll(cool.scx.http.headers.ScxHttpHeaderName name)
      Specified by:
      getAll in interface cool.scx.http.parameters.Parameters<cool.scx.http.headers.ScxHttpHeaderName, String>
    • contains

      public boolean contains(cool.scx.http.headers.ScxHttpHeaderName name)
      Specified by:
      contains in interface cool.scx.http.parameters.Parameters<cool.scx.http.headers.ScxHttpHeaderName, String>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface cool.scx.http.parameters.Parameters<cool.scx.http.headers.ScxHttpHeaderName, String>
    • toMultiValueMap

      public Map<cool.scx.http.headers.ScxHttpHeaderName, List<String>> toMultiValueMap()
      Specified by:
      toMultiValueMap in interface cool.scx.http.parameters.Parameters<cool.scx.http.headers.ScxHttpHeaderName, String>
    • toMap

      public Map<cool.scx.http.headers.ScxHttpHeaderName, String> toMap()
      Specified by:
      toMap in interface cool.scx.http.parameters.Parameters<cool.scx.http.headers.ScxHttpHeaderName, String>
    • forEach

      public <X extends Throwable> void forEach(cool.scx.function.Function2Void<? super cool.scx.http.headers.ScxHttpHeaderName, String, X> action) throws X
      Specified by:
      forEach in interface cool.scx.http.parameters.Parameters<cool.scx.http.headers.ScxHttpHeaderName, String>
      Throws:
      X
    • forEachParameter

      public <X extends Throwable> void forEachParameter(cool.scx.function.Function2Void<? super cool.scx.http.headers.ScxHttpHeaderName, List<String>, X> action) throws X
      Specified by:
      forEachParameter in interface cool.scx.http.parameters.Parameters<cool.scx.http.headers.ScxHttpHeaderName, String>
      Throws:
      X
    • iterator

      public Iterator<cool.scx.http.parameters.ParameterEntry<cool.scx.http.headers.ScxHttpHeaderName, String>> iterator()
      Specified by:
      iterator in interface Iterable<cool.scx.http.parameters.ParameterEntry<cool.scx.http.headers.ScxHttpHeaderName, String>>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • connection

      public ScxConnection connection()
    • connection

      public Http1Headers connection(Connection connection)
    • transferEncoding

      public ScxTransferEncoding transferEncoding()
    • transferEncoding

      public Http1Headers transferEncoding(ScxTransferEncoding transferEncoding)
    • expect

      public ScxExpect expect()
    • expect

      public Http1Headers expect(ScxExpect expect)
    • upgrade

      public ScxUpgrade upgrade()
    • upgrade

      public Http1Headers upgrade(ScxUpgrade upgrade)