Packages

c

akka.http.javadsl.model.headers

ModeledCustomHeaderFactory

abstract class ModeledCustomHeaderFactory[H <: ModeledCustomHeader] extends AnyRef

Companion class for the ModeledCustomHeader class. It offers methods to create ModeledCustomHeader from String or HttpHeader.

Source
ModeledCustomHeaderFactory.java
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ModeledCustomHeaderFactory
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ModeledCustomHeaderFactory()

Abstract Value Members

  1. abstract def name(): String

Concrete Value Members

  1. def create(value: String): H

    Creates a new ModeledCustomHeader from the value checking that the format is correct.

    Creates a new ModeledCustomHeader from the value checking that the format is correct. It may throw if value is not correct

  2. def from(header: HttpHeader): Optional[H]

    Transforms an HttpHeader to this ModeledCustomHeader if the name and value are correct.

    Transforms an HttpHeader to this ModeledCustomHeader if the name and value are correct. It may throw in case of malformed headers

  3. def lowercaseName(): String