Package akka.http.impl.util
Class Util
- java.lang.Object
-
- akka.http.impl.util.Util
-
public abstract class Util extends java.lang.Object
Contains internal helper methods.
-
-
Field Summary
Fields Modifier and Type Field Description static scala.collection.immutable.Map<java.lang.String,java.lang.String>
emptyMap
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T,U extends T>
scala.collection.immutable.Seq<U>convertArray(T[] els)
static <T,U extends T>
scala.collection.immutable.Seq<U>convertIterable(java.lang.Iterable<T> els)
static scala.collection.immutable.Map<java.lang.String,java.lang.String>
convertMapToScala(java.util.Map<java.lang.String,java.lang.String> map)
static <U,T extends U>
java.util.Optional<U>convertOption(scala.Option<T> o)
static <T,U extends T>
scala.Option<U>convertOptionalToScala(java.util.Optional<T> o)
static <U,T extends U>
akka.stream.scaladsl.Source<U,scala.Unit>convertPublisher(akka.stream.scaladsl.Source<T,scala.Unit> p)
static <J,V extends J>
java.util.Optional<J>lookupInRegistry(ObjectRegistry<java.lang.Object,V> registry, int key)
static <J,V extends J>
java.util.Optional<J>lookupInRegistry(ObjectRegistry<java.lang.String,V> registry, java.lang.String key)
static <K,J,V extends J>
java.util.Optional<J>lookupInRegistry(ObjectRegistry<K,V> registry, K key)
static <T> scala.Option<T>
scalaNone()
static <T,U extends T>
akka.stream.scaladsl.Source<U,scala.Unit>upcastSource(akka.stream.scaladsl.Source<T,scala.Unit> p)
-
-
-
Method Detail
-
convertOption
public static <U,T extends U> java.util.Optional<U> convertOption(scala.Option<T> o)
-
convertPublisher
public static <U,T extends U> akka.stream.scaladsl.Source<U,scala.Unit> convertPublisher(akka.stream.scaladsl.Source<T,scala.Unit> p)
-
upcastSource
public static <T,U extends T> akka.stream.scaladsl.Source<U,scala.Unit> upcastSource(akka.stream.scaladsl.Source<T,scala.Unit> p)
-
convertMapToScala
public static scala.collection.immutable.Map<java.lang.String,java.lang.String> convertMapToScala(java.util.Map<java.lang.String,java.lang.String> map)
-
convertOptionalToScala
public static <T,U extends T> scala.Option<U> convertOptionalToScala(java.util.Optional<T> o)
-
scalaNone
public static <T> scala.Option<T> scalaNone()
-
convertIterable
public static <T,U extends T> scala.collection.immutable.Seq<U> convertIterable(java.lang.Iterable<T> els)
-
convertArray
public static <T,U extends T> scala.collection.immutable.Seq<U> convertArray(T[] els)
-
lookupInRegistry
public static <J,V extends J> java.util.Optional<J> lookupInRegistry(ObjectRegistry<java.lang.Object,V> registry, int key)
-
lookupInRegistry
public static <J,V extends J> java.util.Optional<J> lookupInRegistry(ObjectRegistry<java.lang.String,V> registry, java.lang.String key)
-
lookupInRegistry
public static <K,J,V extends J> java.util.Optional<J> lookupInRegistry(ObjectRegistry<K,V> registry, K key)
-
-