public static <J, V extends J> Optional<J> lookupInRegistry(ObjectRegistry<Object, V> registry, int key) { return Util.<J, V>convertOption(registry.getForKey(key)); } public static <J, V extends J> Optional<J> lookupInRegistry(ObjectRegistry<String, V> registry, String key) {
/** * Looks up a status-code by numeric code and returns Some(code). Returns None otherwise. */ public static Optional<StatusCode> lookup(int intValue) { return Util.<StatusCode, akka.http.scaladsl.model.StatusCode>lookupInRegistry(StatusCodes$.MODULE$, intValue); } }
/** * Returns a default response to be changed using the `withX` methods. */ public static HttpResponse create() { return JavaAccessors.HttpResponse(); } }
/** * Returns a default request to be modified using the `withX` methods. */ public static HttpRequest create() { return JavaAccessors.HttpRequest(); }
@Override @SuppressWarnings("unchecked") public <R extends Rendering> R render(R r) { return (R) r.$tilde$tilde(name).$tilde$tilde(':').$tilde$tilde(' ').$tilde$tilde(value); } }
public static <J, V extends J> Optional<J> lookupInRegistry(ObjectRegistry<Object, V> registry, int key) { return Util.<J, V>convertOption(registry.getForKey(key)); } public static <J, V extends J> Optional<J> lookupInRegistry(ObjectRegistry<String, V> registry, String key) {
/** * Looks up a predefined HTTP method with the given name. */ public static Optional<HttpMethod> lookup(String name) { return Util.<HttpMethod, akka.http.scaladsl.model.HttpMethod>lookupInRegistry(HttpMethods$.MODULE$, name); } }
/** * Returns a default request to the specified URI to be modified using the `withX` methods. */ public static HttpRequest create(String uri) { return JavaAccessors.HttpRequest(uri); }
/** * Returns a default response to be changed using the `withX` methods. */ public static HttpResponse create() { return JavaAccessors.HttpResponse(); } }
@Override @SuppressWarnings("unchecked") public <R extends Rendering> R render(R r) { return (R) r.$tilde$tilde(name).$tilde$tilde(':').$tilde$tilde(' ').$tilde$tilde(value); } }
public static <J, V extends J> akka.japi.Option<J> lookupInRegistry(ObjectRegistry<Object, V> registry, int key) { return Util.<J, V>convertOption(registry.getForKey(key)); } public static <J, V extends J> akka.japi.Option<J> lookupInRegistry(ObjectRegistry<String, V> registry, String key) {
/** * Looks up a status-code by numeric code and returns Some(code). Returns None otherwise. */ public static Optional<StatusCode> lookup(int intValue) { return Util.<StatusCode, akka.http.scaladsl.model.StatusCode>lookupInRegistry(StatusCodes$.MODULE$, intValue); } }
/** * Returns a default request to be modified using the `withX` methods. */ public static HttpRequest create() { return JavaAccessors.HttpRequest(); }
public static <K, J, V extends J> Optional<J> lookupInRegistry(ObjectRegistry<K, V> registry, K key) { return Util.<J, V>convertOption(registry.getForKey(key)); }
/** * Returns Some(charset) if the charset with the given name was found and None otherwise. */ public static Optional<HttpCharset> lookup(String name) { return Util.<HttpCharset, akka.http.scaladsl.model.HttpCharset>lookupInRegistry(HttpCharsets$.MODULE$, name); } }
public static <K, J, V extends J> Optional<J> lookupInRegistry(ObjectRegistry<K, V> registry, K key) { return Util.<J, V>convertOption(registry.getForKey(key)); }
/** * Returns Some(charset) if the charset with the given name was found and None otherwise. */ public static Optional<HttpCharset> lookup(String name) { return Util.<HttpCharset, akka.http.scaladsl.model.HttpCharset>lookupInRegistry(HttpCharsets$.MODULE$, name); } }
public static <J, V extends J> Optional<J> lookupInRegistry(ObjectRegistry<Object, V> registry, int key) { return Util.<J, V>convertOption(registry.getForKey(key)); } public static <J, V extends J> Optional<J> lookupInRegistry(ObjectRegistry<String, V> registry, String key) {
/** * Looks up a predefined HTTP method with the given name. */ public static Optional<HttpMethod> lookup(String name) { return Util.<HttpMethod, akka.http.scaladsl.model.HttpMethod>lookupInRegistry(HttpMethods$.MODULE$, name); } }
/** * Looks up a predefined HTTP method with the given name. */ public static Optional<HttpMethod> lookup(String name) { return Util.<HttpMethod, akka.http.scaladsl.model.HttpMethod>lookupInRegistry(HttpMethods$.MODULE$, name); } }