Class HeaderMagnet$
- java.lang.Object
-
- akka.http.scaladsl.server.directives.HeaderMagnet$
-
- All Implemented Interfaces:
LowPriorityHeaderMagnetImplicits
public class HeaderMagnet$ extends java.lang.Object implements LowPriorityHeaderMagnetImplicits
-
-
Field Summary
Fields Modifier and Type Field Description static HeaderMagnet$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description HeaderMagnet$()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T extends ModeledCustomHeader<T>,H extends ModeledCustomHeaderCompanion<T>>
HeaderMagnet<T>fromClassForModeledCustomHeader(java.lang.Class<T> clazz, ModeledCustomHeaderCompanion<T> companion)
<T extends ModeledCustomHeader<T>,H extends ModeledCustomHeaderCompanion<T>>
HeaderMagnet<T>fromClassTagForModeledCustomHeader(scala.reflect.ClassTag<T> tag, ModeledCustomHeaderCompanion<T> companion)
<T extends ModeledCustomHeader<T>,H extends ModeledCustomHeaderCompanion<T>>
HeaderMagnet<T>fromCompanionForModeledCustomHeader(ModeledCustomHeaderCompanion<T> companion, scala.reflect.ClassTag<T> tag)
If possible we want to apply the special logic forModeledCustomHeader
to extract custom headers by type, otherwise the defaultfromCompanion
is good enough (for headers that the parser emits in the right type already).<T extends ModeledCustomHeader<T>,H extends ModeledCustomHeaderCompanion<T>>
HeaderMagnet<T>fromUnitForModeledCustomHeader(scala.runtime.BoxedUnit u, scala.reflect.ClassTag<T> tag, ModeledCustomHeaderCompanion<T> companion)
Deprecated.Pass the companion object to headerValueByType as a parameter instead, e.g.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.http.scaladsl.server.directives.LowPriorityHeaderMagnetImplicits
fromClassNormalHeader, fromClassNormalJavaHeader, fromClassTagNormalHeader, fromCompanionNormalHeader, fromUnitNormalHeader
-
-
-
-
Field Detail
-
MODULE$
public static final HeaderMagnet$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
fromCompanionForModeledCustomHeader
public <T extends ModeledCustomHeader<T>,H extends ModeledCustomHeaderCompanion<T>> HeaderMagnet<T> fromCompanionForModeledCustomHeader(ModeledCustomHeaderCompanion<T> companion, scala.reflect.ClassTag<T> tag)
If possible we want to apply the special logic forModeledCustomHeader
to extract custom headers by type, otherwise the defaultfromCompanion
is good enough (for headers that the parser emits in the right type already).- Parameters:
companion
- (undocumented)tag
- (undocumented)- Returns:
- (undocumented)
-
fromUnitForModeledCustomHeader
public <T extends ModeledCustomHeader<T>,H extends ModeledCustomHeaderCompanion<T>> HeaderMagnet<T> fromUnitForModeledCustomHeader(scala.runtime.BoxedUnit u, scala.reflect.ClassTag<T> tag, ModeledCustomHeaderCompanion<T> companion)
Deprecated.Pass the companion object to headerValueByType as a parameter instead, e.g. `headerValueByType(Origin)` instead of `headerValueByType[Origin](())`. Since 10.2.0.
-
fromClassForModeledCustomHeader
public <T extends ModeledCustomHeader<T>,H extends ModeledCustomHeaderCompanion<T>> HeaderMagnet<T> fromClassForModeledCustomHeader(java.lang.Class<T> clazz, ModeledCustomHeaderCompanion<T> companion)
-
fromClassTagForModeledCustomHeader
public <T extends ModeledCustomHeader<T>,H extends ModeledCustomHeaderCompanion<T>> HeaderMagnet<T> fromClassTagForModeledCustomHeader(scala.reflect.ClassTag<T> tag, ModeledCustomHeaderCompanion<T> companion)
-
-