Additional JavaDSL package structure and docs #20945
This commit is contained in:
parent
3cfb6f9d91
commit
74243a28f8
23 changed files with 47 additions and 30 deletions
|
|
@ -2,7 +2,7 @@
|
|||
* Copyright (C) 2009-2016 Lightbend Inc. <http://www.lightbend.com>
|
||||
*/
|
||||
|
||||
package akka.http.javadsl.server;
|
||||
package akka.http.javadsl.coding;
|
||||
|
||||
import java.util.concurrent.CompletionStage;
|
||||
|
||||
|
|
@ -1,4 +1,7 @@
|
|||
package akka.http.javadsl.server;
|
||||
/*
|
||||
* Copyright (C) 2009-2016 Lightbend Inc. <http://www.lightbend.com>
|
||||
*/
|
||||
package akka.http.javadsl.common;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
|
|
@ -6,7 +9,7 @@ import scala.collection.Seq;
|
|||
import scala.collection.immutable.VectorBuilder;
|
||||
import scala.util.matching.Regex;
|
||||
|
||||
public class RegexConverters {
|
||||
public final class RegexConverters {
|
||||
private static final Seq<String> empty = new VectorBuilder<String>().result();
|
||||
|
||||
/**
|
||||
|
|
@ -1,12 +1,11 @@
|
|||
package akka.http.javadsl.server;
|
||||
|
||||
import akka.http.javadsl.unmarshalling.StringUnmarshaller;
|
||||
import akka.http.javadsl.unmarshalling.StringUnmarshallerPredef;
|
||||
import akka.http.javadsl.unmarshalling.Unmarshaller;
|
||||
/*
|
||||
* Copyright (C) 2009-2016 Lightbend Inc. <http://www.lightbend.com>
|
||||
*/
|
||||
package akka.http.javadsl.unmarshalling;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
public class StringUnmarshallers {
|
||||
public final class StringUnmarshallers {
|
||||
/**
|
||||
* An unmarshaller that returns the input String unchanged.
|
||||
*/
|
||||
|
|
@ -12,7 +12,7 @@ import scala.collection.JavaConverters._
|
|||
|
||||
import akka.http.scaladsl.server.{ PathMatcher ⇒ SPathMatcher }
|
||||
import akka.http.scaladsl.server.{ PathMatchers ⇒ SPathMatchers }
|
||||
import akka.http.javadsl.server.RegexConverters.toScala
|
||||
import akka.http.javadsl.common.RegexConverters.toScala
|
||||
|
||||
final class PathMatchers
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import java.util.function.Supplier
|
|||
import scala.collection.JavaConverters._
|
||||
import akka.http.impl.util.JavaMapping.Implicits._
|
||||
import RoutingJavaMapping._
|
||||
import akka.http.javadsl.coding.Coder
|
||||
import akka.http.javadsl.model.headers.HttpEncoding
|
||||
import akka.http.javadsl.server.Route
|
||||
import akka.http.scaladsl.server.{ Directives ⇒ D }
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import java.util.regex.Pattern
|
|||
|
||||
import scala.collection.JavaConverters._
|
||||
|
||||
import akka.http.javadsl.server.RegexConverters.toScala
|
||||
import akka.http.javadsl.common.RegexConverters.toScala
|
||||
import akka.http.scaladsl.server.{ Directives ⇒ D }
|
||||
|
||||
abstract class HostDirectives extends HeaderDirectives {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue