Package akka.http.impl.util
Class JavaMapping$
- java.lang.Object
-
- akka.http.impl.util.JavaMapping$
-
public class JavaMapping$ extends java.lang.Object
INTERNAL API
-
-
Field Summary
Fields Modifier and Type Field Description static JavaMapping$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description JavaMapping$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <JIn,SIn,SOut,JOut>
akka.stream.scaladsl.BidiFlow<JIn,SIn,SOut,JOut,akka.NotUsed>adapterBidiFlow(JavaMapping<JIn,SIn> inMapping, JavaMapping<JOut,SOut> outMapping)
<T> JavaMapping.Inherited<AttributeKey<T>,AttributeKey<T>>
attributeKey()
JavaMapping.Inherited<AttributeKey<?>,AttributeKey<?>>
AttributeKey()
<JIn,SIn,JOut,SOut,JM,SM>
JavaMapping<akka.stream.javadsl.Flow<JIn,JOut,JM>,akka.stream.scaladsl.Flow<SIn,SOut,SM>>flowMapping(JavaMapping<JIn,SIn> inMapping, JavaMapping<JOut,SOut> outMapping, JavaMapping<JM,SM> matValueMapping)
<_J,_S>
JavaMapping<java.util.concurrent.CompletionStage<_J>,scala.concurrent.Future<_S>>futureMapping(JavaMapping<_J,_S> mapping, scala.concurrent.ExecutionContext ec)
<JIn,SIn,JOut,SOut,M>
JavaMapping<akka.stream.Graph<akka.stream.FlowShape<JIn,JOut>,M>,akka.stream.Graph<akka.stream.FlowShape<SIn,SOut>,M>>graphFlowMapping(JavaMapping<JIn,SIn> inMapping, JavaMapping<JOut,SOut> outMapping)
<T> JavaMapping<T,T>
identity()
This trivial mapping isn't enabled by default to prevent it from conflicting with the `Inherited` ones<_J,_S>
JavaMapping<java.lang.Iterable<_J>,scala.collection.immutable.Seq<_S>>iterableMapping(JavaMapping<_J,_S> mapping)
<J,S>
akka.stream.scaladsl.Flow<J,S,akka.NotUsed>javaToScalaAdapterFlow(JavaMapping<J,S> mapping)
<K,V>
JavaMapping<java.util.Map<K,V>,scala.collection.immutable.Map<K,V>>map()
<_J,_S>
JavaMapping<java.util.Optional<_J>,scala.Option<_S>>option(JavaMapping<_J,_S> mapping)
<J1,J2,S1,S2>
JavaMapping<akka.japi.Pair<J1,J2>,scala.Tuple2<S1,S2>>pairMapping(JavaMapping<J1,S1> _1Mapping, JavaMapping<J2,S2> _2Mapping)
<J,S>
akka.stream.scaladsl.Flow<S,J,akka.NotUsed>scalaToJavaAdapterFlow(JavaMapping<J,S> mapping)
<J,S>
JtoJava(S s, JavaMapping<J,S> mapping)
<J,S>
StoScala(J j, JavaMapping<J,S> mapping)
<_J,_S>
JavaMapping<scala.util.Try<_J>,scala.util.Try<_S>>tryMapping(JavaMapping<_J,_S> mapping)
-
-
-
Field Detail
-
MODULE$
public static final JavaMapping$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
toJava
public <J,S> J toJava(S s, JavaMapping<J,S> mapping)
-
toScala
public <J,S> S toScala(J j, JavaMapping<J,S> mapping)
-
identity
public <T> JavaMapping<T,T> identity()
This trivial mapping isn't enabled by default to prevent it from conflicting with the `Inherited` ones
-
iterableMapping
public <_J,_S> JavaMapping<java.lang.Iterable<_J>,scala.collection.immutable.Seq<_S>> iterableMapping(JavaMapping<_J,_S> mapping)
-
map
public <K,V> JavaMapping<java.util.Map<K,V>,scala.collection.immutable.Map<K,V>> map()
-
option
public <_J,_S> JavaMapping<java.util.Optional<_J>,scala.Option<_S>> option(JavaMapping<_J,_S> mapping)
-
flowMapping
public <JIn,SIn,JOut,SOut,JM,SM> JavaMapping<akka.stream.javadsl.Flow<JIn,JOut,JM>,akka.stream.scaladsl.Flow<SIn,SOut,SM>> flowMapping(JavaMapping<JIn,SIn> inMapping, JavaMapping<JOut,SOut> outMapping, JavaMapping<JM,SM> matValueMapping)
-
graphFlowMapping
public <JIn,SIn,JOut,SOut,M> JavaMapping<akka.stream.Graph<akka.stream.FlowShape<JIn,JOut>,M>,akka.stream.Graph<akka.stream.FlowShape<SIn,SOut>,M>> graphFlowMapping(JavaMapping<JIn,SIn> inMapping, JavaMapping<JOut,SOut> outMapping)
-
scalaToJavaAdapterFlow
public <J,S> akka.stream.scaladsl.Flow<S,J,akka.NotUsed> scalaToJavaAdapterFlow(JavaMapping<J,S> mapping)
-
javaToScalaAdapterFlow
public <J,S> akka.stream.scaladsl.Flow<J,S,akka.NotUsed> javaToScalaAdapterFlow(JavaMapping<J,S> mapping)
-
adapterBidiFlow
public <JIn,SIn,SOut,JOut> akka.stream.scaladsl.BidiFlow<JIn,SIn,SOut,JOut,akka.NotUsed> adapterBidiFlow(JavaMapping<JIn,SIn> inMapping, JavaMapping<JOut,SOut> outMapping)
-
pairMapping
public <J1,J2,S1,S2> JavaMapping<akka.japi.Pair<J1,J2>,scala.Tuple2<S1,S2>> pairMapping(JavaMapping<J1,S1> _1Mapping, JavaMapping<J2,S2> _2Mapping)
-
tryMapping
public <_J,_S> JavaMapping<scala.util.Try<_J>,scala.util.Try<_S>> tryMapping(JavaMapping<_J,_S> mapping)
-
futureMapping
public <_J,_S> JavaMapping<java.util.concurrent.CompletionStage<_J>,scala.concurrent.Future<_S>> futureMapping(JavaMapping<_J,_S> mapping, scala.concurrent.ExecutionContext ec)
-
AttributeKey
public JavaMapping.Inherited<AttributeKey<?>,AttributeKey<?>> AttributeKey()
-
attributeKey
public <T> JavaMapping.Inherited<AttributeKey<T>,AttributeKey<T>> attributeKey()
-
-