!htc #17279 refactor package structure to new layout

This commit is contained in:
Mathias 2015-04-24 12:38:44 +02:00
parent 5859c39f8b
commit 29063bce86
287 changed files with 1725 additions and 1783 deletions

View file

@ -2,9 +2,10 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.impl.util;
import akka.http.util.ObjectRegistry;
import akka.http.impl.model.JavaUri;
import akka.http.javadsl.model.Uri;
import akka.japi.Option;
import scala.None$;
import scala.collection.immutable.Map$;
@ -61,7 +62,7 @@ public abstract class Util {
return Util.<T, U>convertIterable(Arrays.asList(els));
}
public static akka.http.model.Uri convertUriToScala(Uri uri) {
public static akka.http.scaladsl.model.Uri convertUriToScala(Uri uri) {
return ((JavaUri) uri).uri();
}

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
/** Marker-interface for entity types that can be used in a body part */
public interface BodyPartEntity extends HttpEntity {}

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
import akka.util.ByteString;

View file

@ -2,9 +2,9 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
import akka.http.model.ContentRange$;
import akka.http.scaladsl.model.ContentRange$;
import akka.japi.Option;
public abstract class ContentRange {
@ -30,9 +30,9 @@ public abstract class ContentRange {
return ContentRange$.MODULE$.apply(first, last, ((Option<Object>) (Option) instanceLength).asScala());
}
public static ContentRange createUnsatisfiable(long length) {
return new akka.http.model.ContentRange.Unsatisfiable(length);
return new akka.http.scaladsl.model.ContentRange.Unsatisfiable(length);
}
public static ContentRange createOther(String value) {
return new akka.http.model.ContentRange.Other(value);
return new akka.http.scaladsl.model.ContentRange.Other(value);
}
}

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
import akka.japi.Option;
@ -29,13 +29,13 @@ public abstract class ContentType {
* Creates a content-type from a media-type and a charset.
*/
public static ContentType create(MediaType mediaType, HttpCharset charset) {
return akka.http.model.ContentType.apply((akka.http.model.MediaType) mediaType, (akka.http.model.HttpCharset) charset);
return akka.http.scaladsl.model.ContentType.apply((akka.http.scaladsl.model.MediaType) mediaType, (akka.http.scaladsl.model.HttpCharset) charset);
}
/**
* Creates a content-type from a media-type without specifying a charset.
*/
public static ContentType create(MediaType mediaType) {
return akka.http.model.ContentType.apply((akka.http.model.MediaType) mediaType);
return akka.http.scaladsl.model.ContentType.apply((akka.http.scaladsl.model.MediaType) mediaType);
}
}

View file

@ -2,9 +2,10 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
import akka.japi.Option;
import akka.http.impl.util.Util;
/**
* Immutable, fast and efficient Date + Time implementation without any dependencies.
@ -93,7 +94,7 @@ public abstract class DateTime {
* Returns a new DateTime instance representing the current instant.
*/
public static DateTime now() {
return akka.http.util.DateTime.now();
return akka.http.scaladsl.model.DateTime.now();
}
/**
@ -101,7 +102,7 @@ public abstract class DateTime {
* parsing has failed.
*/
public static Option<DateTime> fromIsoDateTimeString(String isoDateTimeString) {
return Util.<DateTime, akka.http.util.DateTime>convertOption(akka.http.util.DateTime.fromIsoDateTimeString(isoDateTimeString));
return Util.<DateTime, akka.http.scaladsl.model.DateTime>convertOption(akka.http.scaladsl.model.DateTime.fromIsoDateTimeString(isoDateTimeString));
}
/**
@ -111,13 +112,13 @@ public abstract class DateTime {
* Note that this implementation discards milliseconds (i.e. rounds down to full seconds).
*/
public static DateTime create(long clicks) {
return akka.http.util.DateTime.apply(clicks);
return akka.http.scaladsl.model.DateTime.apply(clicks);
}
/**
* Returns a new DateTime instance by interpreting the given date/time components as an instant in GMT.
*/
public static DateTime create(int year, int month, int day, int hour, int minute, int second) {
return akka.http.util.DateTime.apply(year, month, day, hour, minute, second);
return akka.http.scaladsl.model.DateTime.apply(year, month, day, hour, minute, second);
}
}

View file

@ -2,10 +2,10 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
import akka.http.model.Uri;
import akka.http.model.UriJavaAccessor;
import akka.http.scaladsl.model.Uri;
import akka.http.scaladsl.model.UriJavaAccessor;
import java.net.InetAddress;
import java.nio.charset.Charset;

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
/**
* Represents a charset in Http. See {@link HttpCharsets} for a set of predefined charsets and

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
/**
* Represents an Http charset range. This can either be `*` which matches all charsets or a specific

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
/**
* Contains constructors to create a HttpCharsetRange.
@ -13,5 +13,5 @@ public final class HttpCharsetRanges {
/**
* A constant representing the range that matches all charsets.
*/
public static final HttpCharsetRange ALL = akka.http.model.HttpCharsetRange.$times$.MODULE$;
public static final HttpCharsetRange ALL = akka.http.scaladsl.model.HttpCharsetRange.$times$.MODULE$;
}

View file

@ -0,0 +1,37 @@
/**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.javadsl.model;
import akka.http.impl.util.Util;
import akka.http.scaladsl.model.HttpCharsets$;
import akka.japi.Option;
/**
* Contains a set of predefined charsets.
*/
public final class HttpCharsets {
private HttpCharsets() {}
public static final HttpCharset US_ASCII = akka.http.scaladsl.model.HttpCharsets.US$minusASCII();
public static final HttpCharset ISO_8859_1 = akka.http.scaladsl.model.HttpCharsets.ISO$minus8859$minus1();
public static final HttpCharset UTF_8 = akka.http.scaladsl.model.HttpCharsets.UTF$minus8();
public static final HttpCharset UTF_16 = akka.http.scaladsl.model.HttpCharsets.UTF$minus16();
public static final HttpCharset UTF_16BE = akka.http.scaladsl.model.HttpCharsets.UTF$minus16BE();
public static final HttpCharset UTF_16LE = akka.http.scaladsl.model.HttpCharsets.UTF$minus16LE();
/**
* Create and return a custom charset.
*/
public static HttpCharset custom(String value, String... aliases) {
return akka.http.scaladsl.model.HttpCharset.custom(value, Util.<String, String>convertArray(aliases));
}
/**
* Returns Some(charset) if the charset with the given name was found and None otherwise.
*/
public static Option<HttpCharset> lookup(String name) {
return Util.<HttpCharset, akka.http.scaladsl.model.HttpCharset>lookupInRegistry(HttpCharsets$.MODULE$, name);
}
}

View file

@ -2,13 +2,13 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
import java.io.File;
import akka.util.ByteString;
import akka.stream.javadsl.Source;
import akka.http.model.HttpEntity$;
import akka.http.scaladsl.model.HttpEntity$;
/** Constructors for HttpEntity instances */
public final class HttpEntities {
@ -27,36 +27,36 @@ public final class HttpEntities {
}
public static HttpEntityStrict create(ContentType contentType, String string) {
return HttpEntity$.MODULE$.apply((akka.http.model.ContentType) contentType, string);
return HttpEntity$.MODULE$.apply((akka.http.scaladsl.model.ContentType) contentType, string);
}
public static HttpEntityStrict create(ContentType contentType, byte[] bytes) {
return HttpEntity$.MODULE$.apply((akka.http.model.ContentType) contentType, bytes);
return HttpEntity$.MODULE$.apply((akka.http.scaladsl.model.ContentType) contentType, bytes);
}
public static HttpEntityStrict create(ContentType contentType, ByteString bytes) {
return HttpEntity$.MODULE$.apply((akka.http.model.ContentType) contentType, bytes);
return HttpEntity$.MODULE$.apply((akka.http.scaladsl.model.ContentType) contentType, bytes);
}
public static UniversalEntity create(ContentType contentType, File file) {
return HttpEntity$.MODULE$.apply((akka.http.model.ContentType) contentType, file);
return HttpEntity$.MODULE$.apply((akka.http.scaladsl.model.ContentType) contentType, file);
}
public static HttpEntityDefault create(ContentType contentType, long contentLength, Source<ByteString, Object> data) {
return new akka.http.model.HttpEntity.Default((akka.http.model.ContentType) contentType, contentLength, data.asScala());
return new akka.http.scaladsl.model.HttpEntity.Default((akka.http.scaladsl.model.ContentType) contentType, contentLength, data.asScala());
}
public static HttpEntityCloseDelimited createCloseDelimited(ContentType contentType, Source<ByteString, Object> data) {
return new akka.http.model.HttpEntity.CloseDelimited((akka.http.model.ContentType) contentType, data.asScala());
return new akka.http.scaladsl.model.HttpEntity.CloseDelimited((akka.http.scaladsl.model.ContentType) contentType, data.asScala());
}
public static HttpEntityIndefiniteLength createIndefiniteLength(ContentType contentType, Source<ByteString, Object> data) {
return new akka.http.model.HttpEntity.IndefiniteLength((akka.http.model.ContentType) contentType, data.asScala());
return new akka.http.scaladsl.model.HttpEntity.IndefiniteLength((akka.http.scaladsl.model.ContentType) contentType, data.asScala());
}
public static HttpEntityChunked createChunked(ContentType contentType, Source<ByteString, Object> data) {
return akka.http.model.HttpEntity.Chunked$.MODULE$.fromData(
(akka.http.model.ContentType) contentType,
return akka.http.scaladsl.model.HttpEntity.Chunked$.MODULE$.fromData(
(akka.http.scaladsl.model.ContentType) contentType,
data.asScala());
}
}

View file

@ -2,9 +2,9 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
import akka.http.model.HttpEntity$;
import akka.http.scaladsl.model.HttpEntity$;
import akka.stream.javadsl.Source;
import akka.util.ByteString;

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
import akka.stream.javadsl.Source;

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
/**
* Represents an entity without a predetermined content-length. Its length is implicitly

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
/**
* The default entity type which has a predetermined length and a stream of data bytes.

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
/**
* Represents an entity without a predetermined content-length to use in a BodyParts.

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
import akka.util.ByteString;

View file

@ -2,12 +2,12 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
/**
* The base type representing Http headers. All actual header values will be instances
* of one of the subtypes defined in the `headers` packages. Unknown headers will be subtypes
* of {@link akka.http.model.japi.headers.RawHeader}.
* of {@link akka.http.javadsl.model.headers.RawHeader}.
*/
public abstract class HttpHeader {
/**

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
import akka.japi.Option;
import akka.util.ByteString;

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
/**
* Represents an HTTP request method. See {@link HttpMethods} for a set of predefined methods

View file

@ -0,0 +1,40 @@
/**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.javadsl.model;
import akka.http.impl.util.Util;
import akka.japi.Option;
import akka.http.scaladsl.model.HttpMethods$;
/**
* Contains static constants for predefined method types.
*/
public final class HttpMethods {
private HttpMethods() {}
public static final HttpMethod CONNECT = akka.http.scaladsl.model.HttpMethods.CONNECT();
public static final HttpMethod DELETE = akka.http.scaladsl.model.HttpMethods.DELETE();
public static final HttpMethod GET = akka.http.scaladsl.model.HttpMethods.GET();
public static final HttpMethod HEAD = akka.http.scaladsl.model.HttpMethods.HEAD();
public static final HttpMethod OPTIONS = akka.http.scaladsl.model.HttpMethods.OPTIONS();
public static final HttpMethod PATCH = akka.http.scaladsl.model.HttpMethods.PATCH();
public static final HttpMethod POST = akka.http.scaladsl.model.HttpMethods.POST();
public static final HttpMethod PUT = akka.http.scaladsl.model.HttpMethods.PUT();
public static final HttpMethod TRACE = akka.http.scaladsl.model.HttpMethods.TRACE();
/**
* Create a custom method type.
*/
public static HttpMethod custom(String value, boolean safe, boolean idempotent, boolean entityAccepted) {
return akka.http.scaladsl.model.HttpMethod.custom(value, safe, idempotent, entityAccepted);
}
/**
* Looks up a predefined HTTP method with the given name.
*/
public static Option<HttpMethod> lookup(String name) {
return Util.<HttpMethod, akka.http.scaladsl.model.HttpMethod>lookupInRegistry(HttpMethods$.MODULE$, name);
}
}

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
/**
* Represents an Http protocol (currently only HTTP/1.0 or HTTP/1.1). See {@link HttpProtocols}

View file

@ -0,0 +1,15 @@
/**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.javadsl.model;
/**
* Contains constants of the supported Http protocols.
*/
public final class HttpProtocols {
private HttpProtocols() {}
final HttpProtocol HTTP_1_0 = akka.http.scaladsl.model.HttpProtocols.HTTP$div1$u002E0();
final HttpProtocol HTTP_1_1 = akka.http.scaladsl.model.HttpProtocols.HTTP$div1$u002E1();
}

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
/**
* Represents an Http request.

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
/**
* Represents an Http response.

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
import java.util.Map;

View file

@ -0,0 +1,46 @@
/**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.javadsl.model;
import akka.http.impl.util.Util;
import java.util.Map;
/**
* Contains a set of predefined media-ranges and static methods to create custom ones.
*/
public final class MediaRanges {
private MediaRanges() {}
public static final MediaRange ALL = akka.http.scaladsl.model.MediaRanges.$times$div$times();
public static final MediaRange ALL_APPLICATION = akka.http.scaladsl.model.MediaRanges.application$div$times();
public static final MediaRange ALL_AUDIO = akka.http.scaladsl.model.MediaRanges.audio$div$times();
public static final MediaRange ALL_IMAGE = akka.http.scaladsl.model.MediaRanges.image$div$times();
public static final MediaRange ALL_MESSAGE = akka.http.scaladsl.model.MediaRanges.message$div$times();
public static final MediaRange ALL_MULTIPART = akka.http.scaladsl.model.MediaRanges.multipart$div$times();
public static final MediaRange ALL_TEXT = akka.http.scaladsl.model.MediaRanges.text$div$times();
public static final MediaRange ALL_VIDEO = akka.http.scaladsl.model.MediaRanges.video$div$times();
/**
* Creates a custom universal media-range for a given main-type.
*/
public static MediaRange create(MediaType mediaType) {
return akka.http.scaladsl.model.MediaRange.apply((akka.http.scaladsl.model.MediaType) mediaType);
}
/**
* Creates a custom universal media-range for a given main-type and a Map of parameters.
*/
public static MediaRange custom(String mainType, Map<String, String> parameters) {
return akka.http.scaladsl.model.MediaRange.custom(mainType, Util.convertMapToScala(parameters), 1.0f);
}
/**
* Creates a custom universal media-range for a given main-type and qValue.
*/
public static MediaRange create(MediaType mediaType, float qValue) {
return akka.http.scaladsl.model.MediaRange.apply((akka.http.scaladsl.model.MediaType) mediaType, qValue);
}
}

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
/**
* Represents an Http media-type. A media-type consists of a main-type and a sub-type.

View file

@ -0,0 +1,201 @@
/**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.javadsl.model;
import akka.http.impl.util.Util;
import akka.http.scaladsl.model.MediaTypes$;
import akka.japi.Option;
import java.util.Map;
/**
* Contains the set of predefined media-types.
*/
public abstract class MediaTypes {
public static final MediaType APPLICATION_ATOM_XML = akka.http.scaladsl.model.MediaTypes.application$divatom$plusxml();
public static final MediaType APPLICATION_BASE64 = akka.http.scaladsl.model.MediaTypes.application$divbase64();
public static final MediaType APPLICATION_EXCEL = akka.http.scaladsl.model.MediaTypes.application$divexcel();
public static final MediaType APPLICATION_FONT_WOFF = akka.http.scaladsl.model.MediaTypes.application$divfont$minuswoff();
public static final MediaType APPLICATION_GNUTAR = akka.http.scaladsl.model.MediaTypes.application$divgnutar();
public static final MediaType APPLICATION_JAVA_ARCHIVE = akka.http.scaladsl.model.MediaTypes.application$divjava$minusarchive();
public static final MediaType APPLICATION_JAVASCRIPT = akka.http.scaladsl.model.MediaTypes.application$divjavascript();
public static final MediaType APPLICATION_JSON = akka.http.scaladsl.model.MediaTypes.application$divjson();
public static final MediaType APPLICATION_JSON_PATCH_JSON = akka.http.scaladsl.model.MediaTypes.application$divjson$minuspatch$plusjson();
public static final MediaType APPLICATION_LHA = akka.http.scaladsl.model.MediaTypes.application$divlha();
public static final MediaType APPLICATION_LZX = akka.http.scaladsl.model.MediaTypes.application$divlzx();
public static final MediaType APPLICATION_MSPOWERPOINT = akka.http.scaladsl.model.MediaTypes.application$divmspowerpoint();
public static final MediaType APPLICATION_MSWORD = akka.http.scaladsl.model.MediaTypes.application$divmsword();
public static final MediaType APPLICATION_OCTET_STREAM = akka.http.scaladsl.model.MediaTypes.application$divoctet$minusstream();
public static final MediaType APPLICATION_PDF = akka.http.scaladsl.model.MediaTypes.application$divpdf();
public static final MediaType APPLICATION_POSTSCRIPT = akka.http.scaladsl.model.MediaTypes.application$divpostscript();
public static final MediaType APPLICATION_RSS_XML = akka.http.scaladsl.model.MediaTypes.application$divrss$plusxml();
public static final MediaType APPLICATION_SOAP_XML = akka.http.scaladsl.model.MediaTypes.application$divsoap$plusxml();
public static final MediaType APPLICATION_VND_API_JSON = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eapi$plusjson();
public static final MediaType APPLICATION_VND_GOOGLE_EARTH_KML_XML = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Egoogle$minusearth$u002Ekml$plusxml();
public static final MediaType APPLICATION_VND_GOOGLE_EARTH_KMZ = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Egoogle$minusearth$u002Ekmz();
public static final MediaType APPLICATION_VND_MS_FONTOBJECT = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Ems$minusfontobject();
public static final MediaType APPLICATION_VND_OASIS_OPENDOCUMENT_CHART = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eoasis$u002Eopendocument$u002Echart();
public static final MediaType APPLICATION_VND_OASIS_OPENDOCUMENT_DATABASE = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eoasis$u002Eopendocument$u002Edatabase();
public static final MediaType APPLICATION_VND_OASIS_OPENDOCUMENT_FORMULA = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eoasis$u002Eopendocument$u002Eformula();
public static final MediaType APPLICATION_VND_OASIS_OPENDOCUMENT_GRAPHICS = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eoasis$u002Eopendocument$u002Egraphics();
public static final MediaType APPLICATION_VND_OASIS_OPENDOCUMENT_IMAGE = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eoasis$u002Eopendocument$u002Eimage();
public static final MediaType APPLICATION_VND_OASIS_OPENDOCUMENT_PRESENTATION = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eoasis$u002Eopendocument$u002Epresentation();
public static final MediaType APPLICATION_VND_OASIS_OPENDOCUMENT_SPREADSHEET = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eoasis$u002Eopendocument$u002Espreadsheet();
public static final MediaType APPLICATION_VND_OASIS_OPENDOCUMENT_TEXT = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eoasis$u002Eopendocument$u002Etext();
public static final MediaType APPLICATION_VND_OASIS_OPENDOCUMENT_TEXT_MASTER = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eoasis$u002Eopendocument$u002Etext$minusmaster();
public static final MediaType APPLICATION_VND_OASIS_OPENDOCUMENT_TEXT_WEB = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eoasis$u002Eopendocument$u002Etext$minusweb();
public static final MediaType APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_PRESENTATION = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eopenxmlformats$minusofficedocument$u002Epresentationml$u002Epresentation();
public static final MediaType APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_SLIDE = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eopenxmlformats$minusofficedocument$u002Epresentationml$u002Eslide();
public static final MediaType APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_SLIDESHOW = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eopenxmlformats$minusofficedocument$u002Epresentationml$u002Eslideshow();
public static final MediaType APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_TEMPLATE = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eopenxmlformats$minusofficedocument$u002Epresentationml$u002Etemplate();
public static final MediaType APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_SPREADSHEETML_SHEET = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eopenxmlformats$minusofficedocument$u002Espreadsheetml$u002Esheet();
public static final MediaType APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_SPREADSHEETML_TEMPLATE = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eopenxmlformats$minusofficedocument$u002Espreadsheetml$u002Etemplate();
public static final MediaType APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_WORDPROCESSINGML_DOCUMENT = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eopenxmlformats$minusofficedocument$u002Ewordprocessingml$u002Edocument();
public static final MediaType APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_WORDPROCESSINGML_TEMPLATE = akka.http.scaladsl.model.MediaTypes.application$divvnd$u002Eopenxmlformats$minusofficedocument$u002Ewordprocessingml$u002Etemplate();
public static final MediaType APPLICATION_X_7Z_COMPRESSED = akka.http.scaladsl.model.MediaTypes.application$divx$minus7z$minuscompressed();
public static final MediaType APPLICATION_X_ACE_COMPRESSED = akka.http.scaladsl.model.MediaTypes.application$divx$minusace$minuscompressed();
public static final MediaType APPLICATION_X_APPLE_DISKIMAGE = akka.http.scaladsl.model.MediaTypes.application$divx$minusapple$minusdiskimage();
public static final MediaType APPLICATION_X_ARC_COMPRESSED = akka.http.scaladsl.model.MediaTypes.application$divx$minusarc$minuscompressed();
public static final MediaType APPLICATION_X_BZIP = akka.http.scaladsl.model.MediaTypes.application$divx$minusbzip();
public static final MediaType APPLICATION_X_BZIP2 = akka.http.scaladsl.model.MediaTypes.application$divx$minusbzip2();
public static final MediaType APPLICATION_X_CHROME_EXTENSION = akka.http.scaladsl.model.MediaTypes.application$divx$minuschrome$minusextension();
public static final MediaType APPLICATION_X_COMPRESS = akka.http.scaladsl.model.MediaTypes.application$divx$minuscompress();
public static final MediaType APPLICATION_X_COMPRESSED = akka.http.scaladsl.model.MediaTypes.application$divx$minuscompressed();
public static final MediaType APPLICATION_X_DEBIAN_PACKAGE = akka.http.scaladsl.model.MediaTypes.application$divx$minusdebian$minuspackage();
public static final MediaType APPLICATION_X_DVI = akka.http.scaladsl.model.MediaTypes.application$divx$minusdvi();
public static final MediaType APPLICATION_X_FONT_TRUETYPE = akka.http.scaladsl.model.MediaTypes.application$divx$minusfont$minustruetype();
public static final MediaType APPLICATION_X_FONT_OPENTYPE = akka.http.scaladsl.model.MediaTypes.application$divx$minusfont$minusopentype();
public static final MediaType APPLICATION_X_GTAR = akka.http.scaladsl.model.MediaTypes.application$divx$minusgtar();
public static final MediaType APPLICATION_X_GZIP = akka.http.scaladsl.model.MediaTypes.application$divx$minusgzip();
public static final MediaType APPLICATION_X_LATEX = akka.http.scaladsl.model.MediaTypes.application$divx$minuslatex();
public static final MediaType APPLICATION_X_RAR_COMPRESSED = akka.http.scaladsl.model.MediaTypes.application$divx$minusrar$minuscompressed();
public static final MediaType APPLICATION_X_REDHAT_PACKAGE_MANAGER = akka.http.scaladsl.model.MediaTypes.application$divx$minusredhat$minuspackage$minusmanager();
public static final MediaType APPLICATION_X_SHOCKWAVE_FLASH = akka.http.scaladsl.model.MediaTypes.application$divx$minusshockwave$minusflash();
public static final MediaType APPLICATION_X_TAR = akka.http.scaladsl.model.MediaTypes.application$divx$minustar();
public static final MediaType APPLICATION_X_TEX = akka.http.scaladsl.model.MediaTypes.application$divx$minustex();
public static final MediaType APPLICATION_X_TEXINFO = akka.http.scaladsl.model.MediaTypes.application$divx$minustexinfo();
public static final MediaType APPLICATION_X_VRML = akka.http.scaladsl.model.MediaTypes.application$divx$minusvrml();
public static final MediaType APPLICATION_X_WWW_FORM_URLENCODED = akka.http.scaladsl.model.MediaTypes.application$divx$minuswww$minusform$minusurlencoded();
public static final MediaType APPLICATION_X_X509_CA_CERT = akka.http.scaladsl.model.MediaTypes.application$divx$minusx509$minusca$minuscert();
public static final MediaType APPLICATION_X_XPINSTALL = akka.http.scaladsl.model.MediaTypes.application$divx$minusxpinstall();
public static final MediaType APPLICATION_XHTML_XML = akka.http.scaladsl.model.MediaTypes.application$divxhtml$plusxml();
public static final MediaType APPLICATION_XML_DTD = akka.http.scaladsl.model.MediaTypes.application$divxml$minusdtd();
public static final MediaType APPLICATION_XML = akka.http.scaladsl.model.MediaTypes.application$divxml();
public static final MediaType APPLICATION_ZIP = akka.http.scaladsl.model.MediaTypes.application$divzip();
public static final MediaType AUDIO_AIFF = akka.http.scaladsl.model.MediaTypes.audio$divaiff();
public static final MediaType AUDIO_BASIC = akka.http.scaladsl.model.MediaTypes.audio$divbasic();
public static final MediaType AUDIO_MIDI = akka.http.scaladsl.model.MediaTypes.audio$divmidi();
public static final MediaType AUDIO_MOD = akka.http.scaladsl.model.MediaTypes.audio$divmod();
public static final MediaType AUDIO_MPEG = akka.http.scaladsl.model.MediaTypes.audio$divmpeg();
public static final MediaType AUDIO_OGG = akka.http.scaladsl.model.MediaTypes.audio$divogg();
public static final MediaType AUDIO_VOC = akka.http.scaladsl.model.MediaTypes.audio$divvoc();
public static final MediaType AUDIO_VORBIS = akka.http.scaladsl.model.MediaTypes.audio$divvorbis();
public static final MediaType AUDIO_VOXWARE = akka.http.scaladsl.model.MediaTypes.audio$divvoxware();
public static final MediaType AUDIO_WAV = akka.http.scaladsl.model.MediaTypes.audio$divwav();
public static final MediaType AUDIO_X_REALAUDIO = akka.http.scaladsl.model.MediaTypes.audio$divx$minusrealaudio();
public static final MediaType AUDIO_X_PSID = akka.http.scaladsl.model.MediaTypes.audio$divx$minuspsid();
public static final MediaType AUDIO_XM = akka.http.scaladsl.model.MediaTypes.audio$divxm();
public static final MediaType AUDIO_WEBM = akka.http.scaladsl.model.MediaTypes.audio$divwebm();
public static final MediaType IMAGE_GIF = akka.http.scaladsl.model.MediaTypes.image$divgif();
public static final MediaType IMAGE_JPEG = akka.http.scaladsl.model.MediaTypes.image$divjpeg();
public static final MediaType IMAGE_PICT = akka.http.scaladsl.model.MediaTypes.image$divpict();
public static final MediaType IMAGE_PNG = akka.http.scaladsl.model.MediaTypes.image$divpng();
public static final MediaType IMAGE_SVG_XML = akka.http.scaladsl.model.MediaTypes.image$divsvg$plusxml();
public static final MediaType IMAGE_TIFF = akka.http.scaladsl.model.MediaTypes.image$divtiff();
public static final MediaType IMAGE_X_ICON = akka.http.scaladsl.model.MediaTypes.image$divx$minusicon();
public static final MediaType IMAGE_X_MS_BMP = akka.http.scaladsl.model.MediaTypes.image$divx$minusms$minusbmp();
public static final MediaType IMAGE_X_PCX = akka.http.scaladsl.model.MediaTypes.image$divx$minuspcx();
public static final MediaType IMAGE_X_PICT = akka.http.scaladsl.model.MediaTypes.image$divx$minuspict();
public static final MediaType IMAGE_X_QUICKTIME = akka.http.scaladsl.model.MediaTypes.image$divx$minusquicktime();
public static final MediaType IMAGE_X_RGB = akka.http.scaladsl.model.MediaTypes.image$divx$minusrgb();
public static final MediaType IMAGE_X_XBITMAP = akka.http.scaladsl.model.MediaTypes.image$divx$minusxbitmap();
public static final MediaType IMAGE_X_XPIXMAP = akka.http.scaladsl.model.MediaTypes.image$divx$minusxpixmap();
public static final MediaType IMAGE_WEBP = akka.http.scaladsl.model.MediaTypes.image$divwebp();
public static final MediaType MESSAGE_HTTP = akka.http.scaladsl.model.MediaTypes.message$divhttp();
public static final MediaType MESSAGE_DELIVERY_STATUS = akka.http.scaladsl.model.MediaTypes.message$divdelivery$minusstatus();
public static final MediaType MESSAGE_RFC822 = akka.http.scaladsl.model.MediaTypes.message$divrfc822();
public static final MediaType MULTIPART_MIXED = akka.http.scaladsl.model.MediaTypes.multipart$divmixed();
public static final MediaType MULTIPART_ALTERNATIVE = akka.http.scaladsl.model.MediaTypes.multipart$divalternative();
public static final MediaType MULTIPART_RELATED = akka.http.scaladsl.model.MediaTypes.multipart$divrelated();
public static final MediaType MULTIPART_FORM_DATA = akka.http.scaladsl.model.MediaTypes.multipart$divform$minusdata();
public static final MediaType MULTIPART_SIGNED = akka.http.scaladsl.model.MediaTypes.multipart$divsigned();
public static final MediaType MULTIPART_ENCRYPTED = akka.http.scaladsl.model.MediaTypes.multipart$divencrypted();
public static final MediaType MULTIPART_BYTERANGES = akka.http.scaladsl.model.MediaTypes.multipart$divbyteranges();
public static final MediaType TEXT_ASP = akka.http.scaladsl.model.MediaTypes.text$divasp();
public static final MediaType TEXT_CACHE_MANIFEST = akka.http.scaladsl.model.MediaTypes.text$divcache$minusmanifest();
public static final MediaType TEXT_CALENDAR = akka.http.scaladsl.model.MediaTypes.text$divcalendar();
public static final MediaType TEXT_CSS = akka.http.scaladsl.model.MediaTypes.text$divcss();
public static final MediaType TEXT_CSV = akka.http.scaladsl.model.MediaTypes.text$divcsv();
public static final MediaType TEXT_HTML = akka.http.scaladsl.model.MediaTypes.text$divhtml();
public static final MediaType TEXT_MCF = akka.http.scaladsl.model.MediaTypes.text$divmcf();
public static final MediaType TEXT_PLAIN = akka.http.scaladsl.model.MediaTypes.text$divplain();
public static final MediaType TEXT_RICHTEXT = akka.http.scaladsl.model.MediaTypes.text$divrichtext();
public static final MediaType TEXT_TAB_SEPARATED_VALUES = akka.http.scaladsl.model.MediaTypes.text$divtab$minusseparated$minusvalues();
public static final MediaType TEXT_URI_LIST = akka.http.scaladsl.model.MediaTypes.text$divuri$minuslist();
public static final MediaType TEXT_VND_WAP_WML = akka.http.scaladsl.model.MediaTypes.text$divvnd$u002Ewap$u002Ewml();
public static final MediaType TEXT_VND_WAP_WMLSCRIPT = akka.http.scaladsl.model.MediaTypes.text$divvnd$u002Ewap$u002Ewmlscript();
public static final MediaType TEXT_X_ASM = akka.http.scaladsl.model.MediaTypes.text$divx$minusasm();
public static final MediaType TEXT_X_C = akka.http.scaladsl.model.MediaTypes.text$divx$minusc();
public static final MediaType TEXT_X_COMPONENT = akka.http.scaladsl.model.MediaTypes.text$divx$minuscomponent();
public static final MediaType TEXT_X_H = akka.http.scaladsl.model.MediaTypes.text$divx$minush();
public static final MediaType TEXT_X_JAVA_SOURCE = akka.http.scaladsl.model.MediaTypes.text$divx$minusjava$minussource();
public static final MediaType TEXT_X_PASCAL = akka.http.scaladsl.model.MediaTypes.text$divx$minuspascal();
public static final MediaType TEXT_X_SCRIPT = akka.http.scaladsl.model.MediaTypes.text$divx$minusscript();
public static final MediaType TEXT_X_SCRIPTCSH = akka.http.scaladsl.model.MediaTypes.text$divx$minusscriptcsh();
public static final MediaType TEXT_X_SCRIPTELISP = akka.http.scaladsl.model.MediaTypes.text$divx$minusscriptelisp();
public static final MediaType TEXT_X_SCRIPTKSH = akka.http.scaladsl.model.MediaTypes.text$divx$minusscriptksh();
public static final MediaType TEXT_X_SCRIPTLISP = akka.http.scaladsl.model.MediaTypes.text$divx$minusscriptlisp();
public static final MediaType TEXT_X_SCRIPTPERL = akka.http.scaladsl.model.MediaTypes.text$divx$minusscriptperl();
public static final MediaType TEXT_X_SCRIPTPERL_MODULE = akka.http.scaladsl.model.MediaTypes.text$divx$minusscriptperl$minusmodule();
public static final MediaType TEXT_X_SCRIPTPHYTON = akka.http.scaladsl.model.MediaTypes.text$divx$minusscriptphyton();
public static final MediaType TEXT_X_SCRIPTREXX = akka.http.scaladsl.model.MediaTypes.text$divx$minusscriptrexx();
public static final MediaType TEXT_X_SCRIPTSCHEME = akka.http.scaladsl.model.MediaTypes.text$divx$minusscriptscheme();
public static final MediaType TEXT_X_SCRIPTSH = akka.http.scaladsl.model.MediaTypes.text$divx$minusscriptsh();
public static final MediaType TEXT_X_SCRIPTTCL = akka.http.scaladsl.model.MediaTypes.text$divx$minusscripttcl();
public static final MediaType TEXT_X_SCRIPTTCSH = akka.http.scaladsl.model.MediaTypes.text$divx$minusscripttcsh();
public static final MediaType TEXT_X_SCRIPTZSH = akka.http.scaladsl.model.MediaTypes.text$divx$minusscriptzsh();
public static final MediaType TEXT_X_SERVER_PARSED_HTML = akka.http.scaladsl.model.MediaTypes.text$divx$minusserver$minusparsed$minushtml();
public static final MediaType TEXT_X_SETEXT = akka.http.scaladsl.model.MediaTypes.text$divx$minussetext();
public static final MediaType TEXT_X_SGML = akka.http.scaladsl.model.MediaTypes.text$divx$minussgml();
public static final MediaType TEXT_X_SPEECH = akka.http.scaladsl.model.MediaTypes.text$divx$minusspeech();
public static final MediaType TEXT_X_UUENCODE = akka.http.scaladsl.model.MediaTypes.text$divx$minusuuencode();
public static final MediaType TEXT_X_VCALENDAR = akka.http.scaladsl.model.MediaTypes.text$divx$minusvcalendar();
public static final MediaType TEXT_X_VCARD = akka.http.scaladsl.model.MediaTypes.text$divx$minusvcard();
public static final MediaType TEXT_XML = akka.http.scaladsl.model.MediaTypes.text$divxml();
public static final MediaType VIDEO_AVS_VIDEO = akka.http.scaladsl.model.MediaTypes.video$divavs$minusvideo();
public static final MediaType VIDEO_DIVX = akka.http.scaladsl.model.MediaTypes.video$divdivx();
public static final MediaType VIDEO_GL = akka.http.scaladsl.model.MediaTypes.video$divgl();
public static final MediaType VIDEO_MP4 = akka.http.scaladsl.model.MediaTypes.video$divmp4();
public static final MediaType VIDEO_MPEG = akka.http.scaladsl.model.MediaTypes.video$divmpeg();
public static final MediaType VIDEO_OGG = akka.http.scaladsl.model.MediaTypes.video$divogg();
public static final MediaType VIDEO_QUICKTIME = akka.http.scaladsl.model.MediaTypes.video$divquicktime();
public static final MediaType VIDEO_X_DV = akka.http.scaladsl.model.MediaTypes.video$divx$minusdv();
public static final MediaType VIDEO_X_FLV = akka.http.scaladsl.model.MediaTypes.video$divx$minusflv();
public static final MediaType VIDEO_X_MOTION_JPEG = akka.http.scaladsl.model.MediaTypes.video$divx$minusmotion$minusjpeg();
public static final MediaType VIDEO_X_MS_ASF = akka.http.scaladsl.model.MediaTypes.video$divx$minusms$minusasf();
public static final MediaType VIDEO_X_MSVIDEO = akka.http.scaladsl.model.MediaTypes.video$divx$minusmsvideo();
public static final MediaType VIDEO_X_SGI_MOVIE = akka.http.scaladsl.model.MediaTypes.video$divx$minussgi$minusmovie();
public static final MediaType VIDEO_WEBM = akka.http.scaladsl.model.MediaTypes.video$divwebm();
/**
* Creates a custom media type.
*/
public static MediaType custom(
String mainType,
String subType,
boolean compressible,
akka.http.scaladsl.model.MediaType.Encoding encoding,
Iterable<String> fileExtensions,
Map<String, String> params) {
return akka.http.scaladsl.model.MediaType.custom(mainType, subType, encoding, compressible, Util.<String, String>convertIterable(fileExtensions), Util.convertMapToScala(params), false);
}
/**
* Looks up a media-type with the given main-type and sub-type.
*/
public static Option<MediaType> lookup(String mainType, String subType) {
return Util.<scala.Tuple2<String, String>, MediaType, akka.http.scaladsl.model.MediaType>lookupInRegistry(MediaTypes$.MODULE$, new scala.Tuple2<String, String>(mainType, subType));
}
}

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
import akka.japi.Option;
@ -13,14 +13,14 @@ public abstract class RemoteAddress {
public abstract Option<InetAddress> getAddress();
public static final RemoteAddress UNKNOWN = akka.http.model.RemoteAddress.Unknown$.MODULE$;
public static final RemoteAddress UNKNOWN = akka.http.scaladsl.model.RemoteAddress.Unknown$.MODULE$;
public static RemoteAddress create(InetAddress address) {
return akka.http.model.RemoteAddress.apply(address);
return akka.http.scaladsl.model.RemoteAddress.apply(address);
}
public static RemoteAddress create(String address) {
return akka.http.model.RemoteAddress.apply(address);
return akka.http.scaladsl.model.RemoteAddress.apply(address);
}
public static RemoteAddress create(byte[] address) {
return akka.http.model.RemoteAddress.apply(address);
return akka.http.scaladsl.model.RemoteAddress.apply(address);
}
}

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
/** Marker-interface for entity types that can be used in a request */
public interface RequestEntity extends ResponseEntity {}

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
/** Marker-interface for entity types that can be used in a response */
public interface ResponseEntity extends HttpEntity {}

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
/**
* Represents an Http status-code and message. See {@link StatusCodes} for the set of predefined

View file

@ -0,0 +1,115 @@
/**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.javadsl.model;
import akka.http.impl.util.Util;
import akka.http.scaladsl.model.StatusCodes$;
import akka.japi.Option;
/**
* Contains the set of predefined status-codes along with static methods to access and create custom
* status-codes.
*/
public final class StatusCodes {
private StatusCodes() {}
public static final StatusCode CONTINUE = akka.http.scaladsl.model.StatusCodes.Continue();
public static final StatusCode SWITCHING_PROTOCOLS = akka.http.scaladsl.model.StatusCodes.SwitchingProtocols();
public static final StatusCode PROCESSING = akka.http.scaladsl.model.StatusCodes.Processing();
public static final StatusCode OK = akka.http.scaladsl.model.StatusCodes.OK();
public static final StatusCode CREATED = akka.http.scaladsl.model.StatusCodes.Created();
public static final StatusCode ACCEPTED = akka.http.scaladsl.model.StatusCodes.Accepted();
public static final StatusCode NON_AUTHORITATIVE_INFORMATION = akka.http.scaladsl.model.StatusCodes.NonAuthoritativeInformation();
public static final StatusCode NO_CONTENT = akka.http.scaladsl.model.StatusCodes.NoContent();
public static final StatusCode RESET_CONTENT = akka.http.scaladsl.model.StatusCodes.ResetContent();
public static final StatusCode PARTIAL_CONTENT = akka.http.scaladsl.model.StatusCodes.PartialContent();
public static final StatusCode MULTI_STATUS = akka.http.scaladsl.model.StatusCodes.MultiStatus();
public static final StatusCode ALREADY_REPORTED = akka.http.scaladsl.model.StatusCodes.AlreadyReported();
public static final StatusCode IMUSED = akka.http.scaladsl.model.StatusCodes.IMUsed();
public static final StatusCode MULTIPLE_CHOICES = akka.http.scaladsl.model.StatusCodes.MultipleChoices();
public static final StatusCode MOVED_PERMANENTLY = akka.http.scaladsl.model.StatusCodes.MovedPermanently();
public static final StatusCode FOUND = akka.http.scaladsl.model.StatusCodes.Found();
public static final StatusCode SEE_OTHER = akka.http.scaladsl.model.StatusCodes.SeeOther();
public static final StatusCode NOT_MODIFIED = akka.http.scaladsl.model.StatusCodes.NotModified();
public static final StatusCode USE_PROXY = akka.http.scaladsl.model.StatusCodes.UseProxy();
public static final StatusCode TEMPORARY_REDIRECT = akka.http.scaladsl.model.StatusCodes.TemporaryRedirect();
public static final StatusCode PERMANENT_REDIRECT = akka.http.scaladsl.model.StatusCodes.PermanentRedirect();
public static final StatusCode BAD_REQUEST = akka.http.scaladsl.model.StatusCodes.BadRequest();
public static final StatusCode UNAUTHORIZED = akka.http.scaladsl.model.StatusCodes.Unauthorized();
public static final StatusCode PAYMENT_REQUIRED = akka.http.scaladsl.model.StatusCodes.PaymentRequired();
public static final StatusCode FORBIDDEN = akka.http.scaladsl.model.StatusCodes.Forbidden();
public static final StatusCode NOT_FOUND = akka.http.scaladsl.model.StatusCodes.NotFound();
public static final StatusCode METHOD_NOT_ALLOWED = akka.http.scaladsl.model.StatusCodes.MethodNotAllowed();
public static final StatusCode NOT_ACCEPTABLE = akka.http.scaladsl.model.StatusCodes.NotAcceptable();
public static final StatusCode PROXY_AUTHENTICATION_REQUIRED = akka.http.scaladsl.model.StatusCodes.ProxyAuthenticationRequired();
public static final StatusCode REQUEST_TIMEOUT = akka.http.scaladsl.model.StatusCodes.RequestTimeout();
public static final StatusCode CONFLICT = akka.http.scaladsl.model.StatusCodes.Conflict();
public static final StatusCode GONE = akka.http.scaladsl.model.StatusCodes.Gone();
public static final StatusCode LENGTH_REQUIRED = akka.http.scaladsl.model.StatusCodes.LengthRequired();
public static final StatusCode PRECONDITION_FAILED = akka.http.scaladsl.model.StatusCodes.PreconditionFailed();
public static final StatusCode REQUEST_ENTITY_TOO_LARGE = akka.http.scaladsl.model.StatusCodes.RequestEntityTooLarge();
public static final StatusCode REQUEST_URI_TOO_LONG = akka.http.scaladsl.model.StatusCodes.RequestUriTooLong();
public static final StatusCode UNSUPPORTED_MEDIA_TYPE = akka.http.scaladsl.model.StatusCodes.UnsupportedMediaType();
public static final StatusCode REQUESTED_RANGE_NOT_SATISFIABLE = akka.http.scaladsl.model.StatusCodes.RequestedRangeNotSatisfiable();
public static final StatusCode EXPECTATION_FAILED = akka.http.scaladsl.model.StatusCodes.ExpectationFailed();
public static final StatusCode ENHANCE_YOUR_CALM = akka.http.scaladsl.model.StatusCodes.EnhanceYourCalm();
public static final StatusCode UNPROCESSABLE_ENTITY = akka.http.scaladsl.model.StatusCodes.UnprocessableEntity();
public static final StatusCode LOCKED = akka.http.scaladsl.model.StatusCodes.Locked();
public static final StatusCode FAILED_DEPENDENCY = akka.http.scaladsl.model.StatusCodes.FailedDependency();
public static final StatusCode UNORDERED_COLLECTION = akka.http.scaladsl.model.StatusCodes.UnorderedCollection();
public static final StatusCode UPGRADE_REQUIRED = akka.http.scaladsl.model.StatusCodes.UpgradeRequired();
public static final StatusCode PRECONDITION_REQUIRED = akka.http.scaladsl.model.StatusCodes.PreconditionRequired();
public static final StatusCode TOO_MANY_REQUESTS = akka.http.scaladsl.model.StatusCodes.TooManyRequests();
public static final StatusCode REQUEST_HEADER_FIELDS_TOO_LARGE = akka.http.scaladsl.model.StatusCodes.RequestHeaderFieldsTooLarge();
public static final StatusCode RETRY_WITH = akka.http.scaladsl.model.StatusCodes.RetryWith();
public static final StatusCode BLOCKED_BY_PARENTAL_CONTROLS = akka.http.scaladsl.model.StatusCodes.BlockedByParentalControls();
public static final StatusCode UNAVAILABLE_FOR_LEGAL_REASONS = akka.http.scaladsl.model.StatusCodes.UnavailableForLegalReasons();
public static final StatusCode INTERNAL_SERVER_ERROR = akka.http.scaladsl.model.StatusCodes.InternalServerError();
public static final StatusCode NOT_IMPLEMENTED = akka.http.scaladsl.model.StatusCodes.NotImplemented();
public static final StatusCode BAD_GATEWAY = akka.http.scaladsl.model.StatusCodes.BadGateway();
public static final StatusCode SERVICE_UNAVAILABLE = akka.http.scaladsl.model.StatusCodes.ServiceUnavailable();
public static final StatusCode GATEWAY_TIMEOUT = akka.http.scaladsl.model.StatusCodes.GatewayTimeout();
public static final StatusCode HTTPVERSION_NOT_SUPPORTED = akka.http.scaladsl.model.StatusCodes.HTTPVersionNotSupported();
public static final StatusCode VARIANT_ALSO_NEGOTIATES = akka.http.scaladsl.model.StatusCodes.VariantAlsoNegotiates();
public static final StatusCode INSUFFICIENT_STORAGE = akka.http.scaladsl.model.StatusCodes.InsufficientStorage();
public static final StatusCode LOOP_DETECTED = akka.http.scaladsl.model.StatusCodes.LoopDetected();
public static final StatusCode BANDWIDTH_LIMIT_EXCEEDED = akka.http.scaladsl.model.StatusCodes.BandwidthLimitExceeded();
public static final StatusCode NOT_EXTENDED = akka.http.scaladsl.model.StatusCodes.NotExtended();
public static final StatusCode NETWORK_AUTHENTICATION_REQUIRED = akka.http.scaladsl.model.StatusCodes.NetworkAuthenticationRequired();
public static final StatusCode NETWORK_READ_TIMEOUT = akka.http.scaladsl.model.StatusCodes.NetworkReadTimeout();
public static final StatusCode NETWORK_CONNECT_TIMEOUT = akka.http.scaladsl.model.StatusCodes.NetworkConnectTimeout();
/**
* Create a custom status code.
*/
public static StatusCode custom(int intValue, String reason, String defaultMessage, boolean isSuccess, boolean allowsEntity) {
return akka.http.scaladsl.model.StatusCodes.custom(intValue, reason, defaultMessage, isSuccess, allowsEntity);
}
/**
* Create a custom status code.
*/
public static StatusCode custom(int intValue, String reason, String defaultMessage) {
return akka.http.scaladsl.model.StatusCodes.custom(intValue, reason, defaultMessage);
}
/**
* Looks up a status-code by numeric code. Throws an exception if no such status-code is found.
*/
public static StatusCode get(int intValue) {
return akka.http.scaladsl.model.StatusCode.int2StatusCode(intValue);
}
/**
* Looks up a status-code by numeric code and returns Some(code). Returns None otherwise.
*/
public static Option<StatusCode> lookup(int intValue) {
return Util.<StatusCode, akka.http.scaladsl.model.StatusCode>lookupInRegistry(StatusCodes$.MODULE$, intValue);
}
}

View file

@ -2,7 +2,9 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
import akka.http.impl.util.Util;
import java.util.Map;
@ -12,9 +14,9 @@ public abstract class TransferEncoding {
public abstract Map<String, String> getParams();
public static TransferEncoding createExtension(String name) {
return new akka.http.model.TransferEncodings.Extension(name, Util.emptyMap);
return new akka.http.scaladsl.model.TransferEncodings.Extension(name, Util.emptyMap);
}
public static TransferEncoding createExtension(String name, Map<String, String> params) {
return new akka.http.model.TransferEncodings.Extension(name, Util.convertMapToScala(params));
return new akka.http.scaladsl.model.TransferEncodings.Extension(name, Util.convertMapToScala(params));
}
}

View file

@ -0,0 +1,14 @@
/**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.javadsl.model;
public final class TransferEncodings {
private TransferEncodings() {}
public static final TransferEncoding CHUNKED = akka.http.scaladsl.model.TransferEncodings.chunked$.MODULE$;
public static final TransferEncoding COMPRESS = akka.http.scaladsl.model.TransferEncodings.compress$.MODULE$;
public static final TransferEncoding DEFLATE = akka.http.scaladsl.model.TransferEncodings.deflate$.MODULE$;
public static final TransferEncoding GZIP = akka.http.scaladsl.model.TransferEncodings.gzip$.MODULE$;
}

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
/** Marker-interface for entity types that can be used in any context */
public interface UniversalEntity extends RequestEntity, ResponseEntity, BodyPartEntity {}

View file

@ -2,9 +2,9 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi;
package akka.http.javadsl.model;
import akka.http.model.UriJavaAccessor;
import akka.http.scaladsl.model.UriJavaAccessor;
import akka.japi.Option;
import akka.parboiled2.ParserInput$;
@ -153,36 +153,36 @@ public abstract class Uri {
*/
public abstract Uri fragment(Option<String> fragment);
public static final akka.http.model.Uri.ParsingMode STRICT = UriJavaAccessor.pmStrict();
public static final akka.http.model.Uri.ParsingMode RELAXED = UriJavaAccessor.pmRelaxed();
public static final akka.http.model.Uri.ParsingMode RELAXED_WITH_RAW_QUERY = UriJavaAccessor.pmRelaxedWithRawQuery();
public static final akka.http.scaladsl.model.Uri.ParsingMode STRICT = UriJavaAccessor.pmStrict();
public static final akka.http.scaladsl.model.Uri.ParsingMode RELAXED = UriJavaAccessor.pmRelaxed();
public static final akka.http.scaladsl.model.Uri.ParsingMode RELAXED_WITH_RAW_QUERY = UriJavaAccessor.pmRelaxedWithRawQuery();
/**
* Creates a default Uri to be modified using the modification methods.
*/
public static Uri create() {
return Accessors$.MODULE$.Uri(akka.http.model.Uri.Empty$.MODULE$);
return Accessors$.MODULE$.Uri(akka.http.scaladsl.model.Uri.Empty$.MODULE$);
}
/**
* Returns a Uri created by parsing the given string representation.
*/
public static Uri create(String uri) {
return Accessors$.MODULE$.Uri(akka.http.model.Uri.apply(uri));
return Accessors$.MODULE$.Uri(akka.http.scaladsl.model.Uri.apply(uri));
}
/**
* Returns a Uri created by parsing the given string representation and parsing-mode.
*/
public static Uri create(String uri, akka.http.model.Uri.ParsingMode parsingMode) {
return Accessors$.MODULE$.Uri(akka.http.model.Uri.apply(ParserInput$.MODULE$.apply(uri), parsingMode));
public static Uri create(String uri, akka.http.scaladsl.model.Uri.ParsingMode parsingMode) {
return Accessors$.MODULE$.Uri(akka.http.scaladsl.model.Uri.apply(ParserInput$.MODULE$.apply(uri), parsingMode));
}
/**
* Returns a Uri created by parsing the given string representation, charset, and parsing-mode.
*/
public static Uri create(String uri, Charset charset, akka.http.model.Uri.ParsingMode parsingMode) {
return Accessors$.MODULE$.Uri(akka.http.model.Uri.apply(ParserInput$.MODULE$.apply(uri), charset, parsingMode));
public static Uri create(String uri, Charset charset, akka.http.scaladsl.model.Uri.ParsingMode parsingMode) {
return Accessors$.MODULE$.Uri(akka.http.scaladsl.model.Uri.apply(ParserInput$.MODULE$.apply(uri), charset, parsingMode));
}
}

View file

@ -2,20 +2,21 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.japi.MediaRange;
import akka.http.impl.util.Util;
import akka.http.javadsl.model.MediaRange;
/**
* Model for the `Accept` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-5.3.2
*/
public abstract class Accept extends akka.http.model.HttpHeader {
public abstract class Accept extends akka.http.scaladsl.model.HttpHeader {
public abstract Iterable<MediaRange> getMediaRanges();
public abstract boolean acceptsAll();
public static Accept create(MediaRange... mediaRanges) {
return new akka.http.model.headers.Accept(akka.http.model.japi.Util.<MediaRange, akka.http.model.MediaRange>convertArray(mediaRanges));
return new akka.http.scaladsl.model.headers.Accept(Util.<MediaRange, akka.http.scaladsl.model.MediaRange>convertArray(mediaRanges));
}
}

View file

@ -2,18 +2,19 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.japi.HttpCharsetRange;
import akka.http.impl.util.Util;
import akka.http.javadsl.model.HttpCharsetRange;
/**
* Model for the `Accept-Charset` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-5.3.3
*/
public abstract class AcceptCharset extends akka.http.model.HttpHeader {
public abstract class AcceptCharset extends akka.http.scaladsl.model.HttpHeader {
public abstract Iterable<HttpCharsetRange> getCharsetRanges();
public static AcceptCharset create(HttpCharsetRange... charsetRanges) {
return new akka.http.model.headers.Accept$minusCharset(akka.http.model.japi.Util.<HttpCharsetRange, akka.http.model.HttpCharsetRange>convertArray(charsetRanges));
return new akka.http.scaladsl.model.headers.Accept$minusCharset(Util.<HttpCharsetRange, akka.http.scaladsl.model.HttpCharsetRange>convertArray(charsetRanges));
}
}

View file

@ -0,0 +1,22 @@
/**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.javadsl.model.headers;
import akka.http.impl.util.Util;
/**
* Model for the `Accept-Encoding` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-5.3.4
*/
public abstract class AcceptEncoding extends akka.http.scaladsl.model.HttpHeader {
public abstract Iterable<HttpEncodingRange> getEncodings();
public static AcceptEncoding create(HttpEncoding encoding) {
return new akka.http.scaladsl.model.headers.Accept$minusEncoding(Util.<HttpEncodingRange, akka.http.scaladsl.model.headers.HttpEncodingRange>convertArray(new HttpEncodingRange[]{encoding.toRange()}));
}
public static AcceptEncoding create(HttpEncodingRange... encodings) {
return new akka.http.scaladsl.model.headers.Accept$minusEncoding(Util.<HttpEncodingRange, akka.http.scaladsl.model.headers.HttpEncodingRange>convertArray(encodings));
}
}

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Accept-Language` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-5.3.5
*/
public abstract class AcceptLanguage extends akka.http.model.HttpHeader {
public abstract class AcceptLanguage extends akka.http.scaladsl.model.HttpHeader {
public abstract Iterable<LanguageRange> getLanguages();
public static AcceptLanguage create(LanguageRange... languages) {
return new akka.http.model.headers.Accept$minusLanguage(akka.http.model.japi.Util.<LanguageRange, akka.http.model.headers.LanguageRange>convertArray(languages));
return new akka.http.scaladsl.model.headers.Accept$minusLanguage(akka.http.impl.util.Util.<LanguageRange, akka.http.scaladsl.model.headers.LanguageRange>convertArray(languages));
}
}

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Accept-Ranges` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p5-range-26#section-2.3
*/
public abstract class AcceptRanges extends akka.http.model.HttpHeader {
public abstract class AcceptRanges extends akka.http.scaladsl.model.HttpHeader {
public abstract Iterable<RangeUnit> getRangeUnits();
public static AcceptRanges create(RangeUnit... rangeUnits) {
return new akka.http.model.headers.Accept$minusRanges(akka.http.model.japi.Util.<RangeUnit, akka.http.model.headers.RangeUnit>convertArray(rangeUnits));
return new akka.http.scaladsl.model.headers.Accept$minusRanges(akka.http.impl.util.Util.<RangeUnit, akka.http.scaladsl.model.headers.RangeUnit>convertArray(rangeUnits));
}
}

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Access-Control-Allow-Credentials` header.
* Specification: http://www.w3.org/TR/cors/#access-control-allow-credentials-response-header
*/
public abstract class AccessControlAllowCredentials extends akka.http.model.HttpHeader {
public abstract class AccessControlAllowCredentials extends akka.http.scaladsl.model.HttpHeader {
public abstract boolean allow();
public static AccessControlAllowCredentials create(boolean allow) {
return new akka.http.model.headers.Access$minusControl$minusAllow$minusCredentials(allow);
return new akka.http.scaladsl.model.headers.Access$minusControl$minusAllow$minusCredentials(allow);
}
}

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Access-Control-Allow-Headers` header.
* Specification: http://www.w3.org/TR/cors/#access-control-allow-headers-response-header
*/
public abstract class AccessControlAllowHeaders extends akka.http.model.HttpHeader {
public abstract class AccessControlAllowHeaders extends akka.http.scaladsl.model.HttpHeader {
public abstract Iterable<String> getHeaders();
public static AccessControlAllowHeaders create(String... headers) {
return new akka.http.model.headers.Access$minusControl$minusAllow$minusHeaders(akka.http.model.japi.Util.<String, String>convertArray(headers));
return new akka.http.scaladsl.model.headers.Access$minusControl$minusAllow$minusHeaders(akka.http.impl.util.Util.<String, String>convertArray(headers));
}
}

View file

@ -2,18 +2,18 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.japi.HttpMethod;
import akka.http.javadsl.model.HttpMethod;
/**
* Model for the `Access-Control-Allow-Methods` header.
* Specification: http://www.w3.org/TR/cors/#access-control-allow-methods-response-header
*/
public abstract class AccessControlAllowMethods extends akka.http.model.HttpHeader {
public abstract class AccessControlAllowMethods extends akka.http.scaladsl.model.HttpHeader {
public abstract Iterable<HttpMethod> getMethods();
public static AccessControlAllowMethods create(HttpMethod... methods) {
return new akka.http.model.headers.Access$minusControl$minusAllow$minusMethods(akka.http.model.japi.Util.<HttpMethod, akka.http.model.HttpMethod>convertArray(methods));
return new akka.http.scaladsl.model.headers.Access$minusControl$minusAllow$minusMethods(akka.http.impl.util.Util.<HttpMethod, akka.http.scaladsl.model.HttpMethod>convertArray(methods));
}
}

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Access-Control-Allow-Origin` header.
* Specification: http://www.w3.org/TR/cors/#access-control-allow-origin-response-header
*/
public abstract class AccessControlAllowOrigin extends akka.http.model.HttpHeader {
public abstract class AccessControlAllowOrigin extends akka.http.scaladsl.model.HttpHeader {
public abstract HttpOriginRange range();
public static AccessControlAllowOrigin create(HttpOriginRange range) {
return new akka.http.model.headers.Access$minusControl$minusAllow$minusOrigin(((akka.http.model.headers.HttpOriginRange) range));
return new akka.http.scaladsl.model.headers.Access$minusControl$minusAllow$minusOrigin(((akka.http.scaladsl.model.headers.HttpOriginRange) range));
}
}

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Access-Control-Expose-Headers` header.
* Specification: http://www.w3.org/TR/cors/#access-control-expose-headers-response-header
*/
public abstract class AccessControlExposeHeaders extends akka.http.model.HttpHeader {
public abstract class AccessControlExposeHeaders extends akka.http.scaladsl.model.HttpHeader {
public abstract Iterable<String> getHeaders();
public static AccessControlExposeHeaders create(String... headers) {
return new akka.http.model.headers.Access$minusControl$minusExpose$minusHeaders(akka.http.model.japi.Util.<String, String>convertArray(headers));
return new akka.http.scaladsl.model.headers.Access$minusControl$minusExpose$minusHeaders(akka.http.impl.util.Util.<String, String>convertArray(headers));
}
}

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Access-Control-Max-Age` header.
* Specification: http://www.w3.org/TR/cors/#access-control-max-age-response-header
*/
public abstract class AccessControlMaxAge extends akka.http.model.HttpHeader {
public abstract class AccessControlMaxAge extends akka.http.scaladsl.model.HttpHeader {
public abstract long deltaSeconds();
public static AccessControlMaxAge create(long deltaSeconds) {
return new akka.http.model.headers.Access$minusControl$minusMax$minusAge(deltaSeconds);
return new akka.http.scaladsl.model.headers.Access$minusControl$minusMax$minusAge(deltaSeconds);
}
}

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Access-Control-Request-Headers` header.
* Specification: http://www.w3.org/TR/cors/#access-control-request-headers-request-header
*/
public abstract class AccessControlRequestHeaders extends akka.http.model.HttpHeader {
public abstract class AccessControlRequestHeaders extends akka.http.scaladsl.model.HttpHeader {
public abstract Iterable<String> getHeaders();
public static AccessControlRequestHeaders create(String... headers) {
return new akka.http.model.headers.Access$minusControl$minusRequest$minusHeaders(akka.http.model.japi.Util.<String, String>convertArray(headers));
return new akka.http.scaladsl.model.headers.Access$minusControl$minusRequest$minusHeaders(akka.http.impl.util.Util.<String, String>convertArray(headers));
}
}

View file

@ -2,18 +2,18 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.japi.HttpMethod;
import akka.http.javadsl.model.HttpMethod;
/**
* Model for the `Access-Control-Request-Method` header.
* Specification: http://www.w3.org/TR/cors/#access-control-request-method-request-header
*/
public abstract class AccessControlRequestMethod extends akka.http.model.HttpHeader {
public abstract class AccessControlRequestMethod extends akka.http.scaladsl.model.HttpHeader {
public abstract HttpMethod method();
public static AccessControlRequestMethod create(HttpMethod method) {
return new akka.http.model.headers.Access$minusControl$minusRequest$minusMethod(((akka.http.model.HttpMethod) method));
return new akka.http.scaladsl.model.headers.Access$minusControl$minusRequest$minusMethod(((akka.http.scaladsl.model.HttpMethod) method));
}
}

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Age` header.
* Specification: http://tools.ietf.org/html/rfc7234#section-5.1
*/
public abstract class Age extends akka.http.model.HttpHeader {
public abstract class Age extends akka.http.scaladsl.model.HttpHeader {
public abstract long deltaSeconds();
public static Age create(long deltaSeconds) {
return new akka.http.model.headers.Age(deltaSeconds);
return new akka.http.scaladsl.model.headers.Age(deltaSeconds);
}
}

View file

@ -2,18 +2,18 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.japi.HttpMethod;
import akka.http.javadsl.model.HttpMethod;
/**
* Model for the `Allow` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-7.4.1
*/
public abstract class Allow extends akka.http.model.HttpHeader {
public abstract class Allow extends akka.http.scaladsl.model.HttpHeader {
public abstract Iterable<HttpMethod> getMethods();
public static Allow create(HttpMethod... methods) {
return new akka.http.model.headers.Allow(akka.http.model.japi.Util.<HttpMethod, akka.http.model.HttpMethod>convertArray(methods));
return new akka.http.scaladsl.model.headers.Allow(akka.http.impl.util.Util.<HttpMethod, akka.http.scaladsl.model.HttpMethod>convertArray(methods));
}
}

View file

@ -2,17 +2,17 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Authorization` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p7-auth-26#section-4.2
*/
public abstract class Authorization extends akka.http.model.HttpHeader {
public abstract class Authorization extends akka.http.scaladsl.model.HttpHeader {
public abstract HttpCredentials credentials();
public static Authorization create(HttpCredentials credentials) {
return new akka.http.model.headers.Authorization(((akka.http.model.headers.HttpCredentials) credentials));
return new akka.http.scaladsl.model.headers.Authorization(((akka.http.scaladsl.model.headers.HttpCredentials) credentials));
}
public static Authorization basic(String username, String password) {
return create(HttpCredentials.createBasicHttpCredentials(username, password));

View file

@ -2,9 +2,9 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
public abstract class BasicHttpCredentials extends akka.http.model.headers.HttpCredentials {
public abstract class BasicHttpCredentials extends akka.http.scaladsl.model.headers.HttpCredentials {
public abstract String username();
public abstract String password();
}

View file

@ -2,9 +2,9 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.headers.ByteRange$;
import akka.http.scaladsl.model.headers.ByteRange$;
import akka.japi.Option;
public abstract class ByteRange {

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Cache-Control` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p6-cache-26#section-5.2
*/
public abstract class CacheControl extends akka.http.model.HttpHeader {
public abstract class CacheControl extends akka.http.scaladsl.model.HttpHeader {
public abstract Iterable<CacheDirective> getDirectives();
public static CacheControl create(CacheDirective... directives) {
return new akka.http.model.headers.Cache$minusControl(akka.http.model.japi.Util.<CacheDirective, akka.http.model.headers.CacheDirective>convertArray(directives));
return new akka.http.scaladsl.model.headers.Cache$minusControl(akka.http.impl.util.Util.<CacheDirective, akka.http.scaladsl.model.headers.CacheDirective>convertArray(directives));
}
}

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
public interface CacheDirective {
String value();

View file

@ -0,0 +1,40 @@
/**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.javadsl.model.headers;
public final class CacheDirectives {
private CacheDirectives() {}
public static CacheDirective MAX_AGE(long deltaSeconds) {
return new akka.http.scaladsl.model.headers.CacheDirectives.max$minusage(deltaSeconds);
}
public static CacheDirective MAX_STALE() {
return new akka.http.scaladsl.model.headers.CacheDirectives.max$minusstale(akka.japi.Option.none().asScala());
}
public static CacheDirective MAX_STALE(long deltaSeconds) {
return new akka.http.scaladsl.model.headers.CacheDirectives.max$minusstale(akka.japi.Option.some((Object) deltaSeconds).asScala());
}
public static CacheDirective MIN_FRESH(long deltaSeconds) {
return new akka.http.scaladsl.model.headers.CacheDirectives.min$minusfresh(deltaSeconds);
}
public static final CacheDirective NO_CACHE = akka.http.scaladsl.model.headers.CacheDirectives.no$minuscache$.MODULE$;
public static final CacheDirective NO_STORE = akka.http.scaladsl.model.headers.CacheDirectives.no$minusstore$.MODULE$;
public static final CacheDirective NO_TRANSFORM = akka.http.scaladsl.model.headers.CacheDirectives.no$minustransform$.MODULE$;
public static final CacheDirective ONLY_IF_CACHED = akka.http.scaladsl.model.headers.CacheDirectives.only$minusif$minuscached$.MODULE$;
public static final CacheDirective MUST_REVALIDATE = akka.http.scaladsl.model.headers.CacheDirectives.must$minusrevalidate$.MODULE$;
public static CacheDirective NO_CACHE(String... fieldNames) {
return akka.http.scaladsl.model.headers.CacheDirectives.no$minuscache$.MODULE$.apply(fieldNames);
}
public static final CacheDirective PUBLIC = akka.http.scaladsl.model.headers.CacheDirectives.getPublic();
public static CacheDirective PRIVATE(String... fieldNames) {
return akka.http.scaladsl.model.headers.CacheDirectives.createPrivate(fieldNames);
}
public static final CacheDirective PROXY_REVALIDATE = akka.http.scaladsl.model.headers.CacheDirectives.proxy$minusrevalidate$.MODULE$;
public static CacheDirective S_MAXAGE(long deltaSeconds) {
return new akka.http.scaladsl.model.headers.CacheDirectives.s$minusmaxage(deltaSeconds);
}
}

View file

@ -2,17 +2,17 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Content-Disposition` header.
* Specification: http://tools.ietf.org/html/rfc6266
*/
public abstract class ContentDisposition extends akka.http.model.HttpHeader {
public abstract class ContentDisposition extends akka.http.scaladsl.model.HttpHeader {
public abstract ContentDispositionType dispositionType();
public abstract java.util.Map<String, String> getParams();
public static ContentDisposition create(ContentDispositionType dispositionType, java.util.Map<String, String> params) {
return new akka.http.model.headers.Content$minusDisposition(((akka.http.model.headers.ContentDispositionType) dispositionType), akka.http.model.japi.Util.convertMapToScala(params));
return new akka.http.scaladsl.model.headers.Content$minusDisposition(((akka.http.scaladsl.model.headers.ContentDispositionType) dispositionType), akka.http.impl.util.Util.convertMapToScala(params));
}
}

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
public interface ContentDispositionType {
String name();

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
public final class ContentDispositionTypes {
private ContentDispositionTypes() {}
public static final ContentDispositionType INLINE = akka.http.model.headers.ContentDispositionTypes.inline$.MODULE$;
public static final ContentDispositionType ATTACHMENT = akka.http.model.headers.ContentDispositionTypes.attachment$.MODULE$;
public static final ContentDispositionType FORM_DATA = akka.http.model.headers.ContentDispositionTypes.form$minusdata$.MODULE$;
public static final ContentDispositionType INLINE = akka.http.scaladsl.model.headers.ContentDispositionTypes.inline$.MODULE$;
public static final ContentDispositionType ATTACHMENT = akka.http.scaladsl.model.headers.ContentDispositionTypes.attachment$.MODULE$;
public static final ContentDispositionType FORM_DATA = akka.http.scaladsl.model.headers.ContentDispositionTypes.form$minusdata$.MODULE$;
public static ContentDispositionType Ext(String name) {
return new akka.http.model.headers.ContentDispositionTypes.Ext(name);
return new akka.http.scaladsl.model.headers.ContentDispositionTypes.Ext(name);
}
}

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Content-Encoding` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-3.1.2.2
*/
public abstract class ContentEncoding extends akka.http.model.HttpHeader {
public abstract class ContentEncoding extends akka.http.scaladsl.model.HttpHeader {
public abstract Iterable<HttpEncoding> getEncodings();
public static ContentEncoding create(HttpEncoding... encodings) {
return new akka.http.model.headers.Content$minusEncoding(akka.http.model.japi.Util.<HttpEncoding, akka.http.model.headers.HttpEncoding>convertArray(encodings));
return new akka.http.scaladsl.model.headers.Content$minusEncoding(akka.http.impl.util.Util.<HttpEncoding, akka.http.scaladsl.model.headers.HttpEncoding>convertArray(encodings));
}
}

View file

@ -0,0 +1,18 @@
/**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.javadsl.model.headers;
/**
* Model for the `Content-Range` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p5-range-26#section-4.2
*/
public abstract class ContentRange extends akka.http.scaladsl.model.HttpHeader {
public abstract RangeUnit rangeUnit();
public abstract akka.http.javadsl.model.ContentRange contentRange();
public static ContentRange create(RangeUnit rangeUnit, akka.http.javadsl.model.ContentRange contentRange) {
return new akka.http.scaladsl.model.headers.Content$minusRange(((akka.http.scaladsl.model.headers.RangeUnit) rangeUnit), ((akka.http.scaladsl.model.ContentRange) contentRange));
}
}

View file

@ -0,0 +1,17 @@
/**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.javadsl.model.headers;
/**
* Model for the `Content-Type` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-3.1.1.5
*/
public abstract class ContentType extends akka.http.scaladsl.model.HttpHeader {
public abstract akka.http.javadsl.model.ContentType contentType();
public static ContentType create(akka.http.javadsl.model.ContentType contentType) {
return new akka.http.scaladsl.model.headers.Content$minusType(((akka.http.scaladsl.model.ContentType) contentType));
}
}

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Cookie` header.
* Specification: https://tools.ietf.org/html/rfc6265#section-4.2
*/
public abstract class Cookie extends akka.http.model.HttpHeader {
public abstract class Cookie extends akka.http.scaladsl.model.HttpHeader {
public abstract Iterable<HttpCookie> getCookies();
public static Cookie create(HttpCookie... cookies) {
return new akka.http.model.headers.Cookie(akka.http.model.japi.Util.<HttpCookie, akka.http.model.headers.HttpCookie>convertArray(cookies));
return new akka.http.scaladsl.model.headers.Cookie(akka.http.impl.util.Util.<HttpCookie, akka.http.scaladsl.model.headers.HttpCookie>convertArray(cookies));
}
}

View file

@ -2,9 +2,9 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
public abstract class CustomHeader extends akka.http.model.HttpHeader {
public abstract class CustomHeader extends akka.http.scaladsl.model.HttpHeader {
public abstract String name();
public abstract String value();

View file

@ -2,18 +2,18 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.japi.DateTime;
import akka.http.javadsl.model.DateTime;
/**
* Model for the `Date` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-7.1.1.2
*/
public abstract class Date extends akka.http.model.HttpHeader {
public abstract class Date extends akka.http.scaladsl.model.HttpHeader {
public abstract DateTime date();
public static Date create(DateTime date) {
return new akka.http.model.headers.Date(((akka.http.util.DateTime) date));
return new akka.http.scaladsl.model.headers.Date(((akka.http.scaladsl.model.DateTime) date));
}
}

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `ETag` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p4-conditional-26#section-2.3
*/
public abstract class ETag extends akka.http.model.HttpHeader {
public abstract class ETag extends akka.http.scaladsl.model.HttpHeader {
public abstract EntityTag etag();
public static ETag create(EntityTag etag) {
return new akka.http.model.headers.ETag(((akka.http.model.headers.EntityTag) etag));
return new akka.http.scaladsl.model.headers.ETag(((akka.http.scaladsl.model.headers.EntityTag) etag));
}
}

View file

@ -2,19 +2,19 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
public abstract class EntityTag {
public abstract String tag();
public abstract boolean weak();
public static EntityTag create(String tag, boolean weak) {
return new akka.http.model.headers.EntityTag(tag, weak);
return new akka.http.scaladsl.model.headers.EntityTag(tag, weak);
}
public static boolean matchesRange(EntityTag eTag, EntityTagRange range, boolean weak) {
return akka.http.model.headers.EntityTag.matchesRange(eTag, range, weak);
return akka.http.scaladsl.model.headers.EntityTag.matchesRange(eTag, range, weak);
}
public static boolean matches(EntityTag eTag, EntityTag other, boolean weak) {
return akka.http.model.headers.EntityTag.matches(eTag, other, weak);
return akka.http.scaladsl.model.headers.EntityTag.matches(eTag, other, weak);
}
}

View file

@ -0,0 +1,14 @@
/**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.javadsl.model.headers;
import akka.http.impl.util.Util;
public abstract class EntityTagRange {
public static EntityTagRange create(EntityTag... tags) {
return akka.http.scaladsl.model.headers.EntityTagRange.apply(Util.<EntityTag, akka.http.scaladsl.model.headers.EntityTag>convertArray(tags));
}
public static final EntityTagRange ALL = akka.http.scaladsl.model.headers.EntityTagRange.$times$.MODULE$;
}

View file

@ -2,18 +2,18 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.japi.DateTime;
import akka.http.javadsl.model.DateTime;
/**
* Model for the `Expires` header.
* Specification: http://tools.ietf.org/html/rfc7234#section-5.3
*/
public abstract class Expires extends akka.http.model.HttpHeader {
public abstract class Expires extends akka.http.scaladsl.model.HttpHeader {
public abstract DateTime date();
public static Expires create(DateTime date) {
return new akka.http.model.headers.Expires(((akka.http.util.DateTime) date));
return new akka.http.scaladsl.model.headers.Expires(((akka.http.scaladsl.model.DateTime) date));
}
}

View file

@ -0,0 +1,10 @@
/**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.javadsl.model.headers;
public abstract class Host extends akka.http.scaladsl.model.HttpHeader {
public abstract akka.http.javadsl.model.Host host();
public abstract int port();
}

View file

@ -2,10 +2,10 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.headers.HttpChallenge$;
import akka.http.model.japi.Util;
import akka.http.scaladsl.model.headers.HttpChallenge$;
import akka.http.impl.util.Util;
import java.util.Map;
@ -16,9 +16,9 @@ public abstract class HttpChallenge {
public abstract Map<String, String> getParams();
public static HttpChallenge create(String scheme, String realm) {
return new akka.http.model.headers.HttpChallenge(scheme, realm, Util.emptyMap);
return new akka.http.scaladsl.model.headers.HttpChallenge(scheme, realm, Util.emptyMap);
}
public static HttpChallenge create(String scheme, String realm, Map<String, String> params) {
return new akka.http.model.headers.HttpChallenge(scheme, realm, Util.convertMapToScala(params));
return new akka.http.scaladsl.model.headers.HttpChallenge(scheme, realm, Util.convertMapToScala(params));
}
}

View file

@ -2,10 +2,10 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.japi.DateTime;
import akka.http.model.japi.Util;
import akka.http.javadsl.model.DateTime;
import akka.http.impl.util.Util;
import akka.japi.Option;
public abstract class HttpCookie {
@ -21,9 +21,9 @@ public abstract class HttpCookie {
public abstract Option<String> getExtension();
public static HttpCookie create(String name, String content) {
return new akka.http.model.headers.HttpCookie(
return new akka.http.scaladsl.model.headers.HttpCookie(
name, content,
Util.<akka.http.util.DateTime>scalaNone(), Util.scalaNone(), Util.<String>scalaNone(), Util.<String>scalaNone(),
Util.<akka.http.scaladsl.model.DateTime>scalaNone(), Util.scalaNone(), Util.<String>scalaNone(), Util.<String>scalaNone(),
false, false,
Util.<String>scalaNone());
}
@ -38,9 +38,9 @@ public abstract class HttpCookie {
boolean secure,
boolean httpOnly,
Option<String> extension) {
return new akka.http.model.headers.HttpCookie(
return new akka.http.scaladsl.model.headers.HttpCookie(
name, content,
Util.<DateTime, akka.http.util.DateTime>convertOptionToScala(expires),
Util.<DateTime, akka.http.scaladsl.model.DateTime>convertOptionToScala(expires),
((Option<Object>) (Option) maxAge).asScala(),
domain.asScala(),
path.asScala(),

View file

@ -2,9 +2,9 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.japi.Util;
import akka.http.impl.util.Util;
import java.util.Map;
@ -15,15 +15,15 @@ public abstract class HttpCredentials {
public abstract Map<String, String> getParams();
public static HttpCredentials create(String scheme, String token) {
return new akka.http.model.headers.GenericHttpCredentials(scheme, token, Util.emptyMap);
return new akka.http.scaladsl.model.headers.GenericHttpCredentials(scheme, token, Util.emptyMap);
}
public static HttpCredentials create(String scheme, String token, Map<String, String> params) {
return new akka.http.model.headers.GenericHttpCredentials(scheme, token, Util.convertMapToScala(params));
return new akka.http.scaladsl.model.headers.GenericHttpCredentials(scheme, token, Util.convertMapToScala(params));
}
public static BasicHttpCredentials createBasicHttpCredentials(String username, String password) {
return new akka.http.model.headers.BasicHttpCredentials(username, password);
return new akka.http.scaladsl.model.headers.BasicHttpCredentials(username, password);
}
public static OAuth2BearerToken createOAuth2BearerToken(String token) {
return new akka.http.model.headers.OAuth2BearerToken(token);
return new akka.http.scaladsl.model.headers.OAuth2BearerToken(token);
}
}

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
public abstract class HttpEncoding {
public abstract String value();

View file

@ -2,9 +2,9 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.headers.HttpEncodingRange$;
import akka.http.scaladsl.model.headers.HttpEncodingRange$;
public abstract class HttpEncodingRange {
public abstract float qValue();
@ -12,8 +12,8 @@ public abstract class HttpEncodingRange {
public abstract HttpEncodingRange withQValue(float qValue);
public static final HttpEncodingRange ALL = akka.http.model.headers.HttpEncodingRange.$times$.MODULE$;
public static final HttpEncodingRange ALL = akka.http.scaladsl.model.headers.HttpEncodingRange.$times$.MODULE$;
public static HttpEncodingRange create(HttpEncoding encoding) {
return HttpEncodingRange$.MODULE$.apply((akka.http.model.headers.HttpEncoding) encoding);
return HttpEncodingRange$.MODULE$.apply((akka.http.scaladsl.model.headers.HttpEncoding) encoding);
}
}

View file

@ -0,0 +1,17 @@
/*
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.javadsl.model.headers;
public final class HttpEncodings {
private HttpEncodings() {}
public static final HttpEncoding CHUNKED = akka.http.scaladsl.model.headers.HttpEncodings.chunked();
public static final HttpEncoding COMPRESS = akka.http.scaladsl.model.headers.HttpEncodings.compress();
public static final HttpEncoding DEFLATE = akka.http.scaladsl.model.headers.HttpEncodings.deflate();
public static final HttpEncoding GZIP = akka.http.scaladsl.model.headers.HttpEncodings.gzip();
public static final HttpEncoding IDENTITY = akka.http.scaladsl.model.headers.HttpEncodings.identity();
public static final HttpEncoding X_COMPRESS = akka.http.scaladsl.model.headers.HttpEncodings.x$minuscompress();
public static final HttpEncoding X_ZIP = akka.http.scaladsl.model.headers.HttpEncodings.x$minuszip();
}

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.headers.HttpOrigin$;
import akka.http.scaladsl.model.headers.HttpOrigin$;
public abstract class HttpOrigin {
public abstract String scheme();
public abstract Host host();
public static HttpOrigin create(String scheme, Host host) {
return new akka.http.model.headers.HttpOrigin(scheme, (akka.http.model.headers.Host) host);
return new akka.http.scaladsl.model.headers.HttpOrigin(scheme, (akka.http.scaladsl.model.headers.Host) host);
}
public static HttpOrigin parse(String originString) {
return HttpOrigin$.MODULE$.apply(originString);

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.headers.HttpOriginRange$;
import akka.http.model.japi.Util;
import akka.http.scaladsl.model.headers.HttpOriginRange$;
import akka.http.impl.util.Util;
public abstract class HttpOriginRange {
public abstract boolean matches(HttpOrigin origin);
public static final HttpOriginRange ALL = akka.http.model.headers.HttpOriginRange.$times$.MODULE$;
public static final HttpOriginRange ALL = akka.http.scaladsl.model.headers.HttpOriginRange.$times$.MODULE$;
public static HttpOriginRange create(HttpOrigin... origins) {
return HttpOriginRange$.MODULE$.apply(Util.<HttpOrigin, akka.http.model.headers.HttpOrigin>convertArray(origins));
return HttpOriginRange$.MODULE$.apply(Util.<HttpOrigin, akka.http.scaladsl.model.headers.HttpOrigin>convertArray(origins));
}
}

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `If-Match` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p4-conditional-26#section-3.1
*/
public abstract class IfMatch extends akka.http.model.HttpHeader {
public abstract class IfMatch extends akka.http.scaladsl.model.HttpHeader {
public abstract EntityTagRange m();
public static IfMatch create(EntityTagRange m) {
return new akka.http.model.headers.If$minusMatch(((akka.http.model.headers.EntityTagRange) m));
return new akka.http.scaladsl.model.headers.If$minusMatch(((akka.http.scaladsl.model.headers.EntityTagRange) m));
}
}

View file

@ -2,18 +2,18 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.japi.DateTime;
import akka.http.javadsl.model.DateTime;
/**
* Model for the `If-Modified-Since` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p4-conditional-26#section-3.3
*/
public abstract class IfModifiedSince extends akka.http.model.HttpHeader {
public abstract class IfModifiedSince extends akka.http.scaladsl.model.HttpHeader {
public abstract DateTime date();
public static IfModifiedSince create(DateTime date) {
return new akka.http.model.headers.If$minusModified$minusSince(((akka.http.util.DateTime) date));
return new akka.http.scaladsl.model.headers.If$minusModified$minusSince(((akka.http.scaladsl.model.DateTime) date));
}
}

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `If-None-Match` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p4-conditional-26#section-3.2
*/
public abstract class IfNoneMatch extends akka.http.model.HttpHeader {
public abstract class IfNoneMatch extends akka.http.scaladsl.model.HttpHeader {
public abstract EntityTagRange m();
public static IfNoneMatch create(EntityTagRange m) {
return new akka.http.model.headers.If$minusNone$minusMatch(((akka.http.model.headers.EntityTagRange) m));
return new akka.http.scaladsl.model.headers.If$minusNone$minusMatch(((akka.http.scaladsl.model.headers.EntityTagRange) m));
}
}

View file

@ -2,18 +2,18 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.japi.DateTime;
import akka.http.javadsl.model.DateTime;
/**
* Model for the `If-Unmodified-Since` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p4-conditional-26#section-3.4
*/
public abstract class IfUnmodifiedSince extends akka.http.model.HttpHeader {
public abstract class IfUnmodifiedSince extends akka.http.scaladsl.model.HttpHeader {
public abstract DateTime date();
public static IfUnmodifiedSince create(DateTime date) {
return new akka.http.model.headers.If$minusUnmodified$minusSince(((akka.http.util.DateTime) date));
return new akka.http.scaladsl.model.headers.If$minusUnmodified$minusSince(((akka.http.scaladsl.model.DateTime) date));
}
}

View file

@ -2,10 +2,10 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.headers.Language$;
import akka.http.model.japi.Util;
import akka.http.impl.util.Util;
import akka.http.scaladsl.model.headers.Language$;
public abstract class Language implements LanguageRange {
public static Language create(String primaryTag, String... subTags) {

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
public interface LanguageRange {
public abstract String primaryTag();
@ -13,5 +13,5 @@ public interface LanguageRange {
public abstract LanguageRange withQValue(float qValue);
public static final LanguageRange ALL = akka.http.model.headers.LanguageRange.$times$.MODULE$;
public static final LanguageRange ALL = akka.http.scaladsl.model.headers.LanguageRange.$times$.MODULE$;
}

View file

@ -2,18 +2,18 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.japi.DateTime;
import akka.http.javadsl.model.DateTime;
/**
* Model for the `Last-Modified` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p4-conditional-26#section-2.2
*/
public abstract class LastModified extends akka.http.model.HttpHeader {
public abstract class LastModified extends akka.http.scaladsl.model.HttpHeader {
public abstract DateTime date();
public static LastModified create(DateTime date) {
return new akka.http.model.headers.Last$minusModified(((akka.http.util.DateTime) date));
return new akka.http.scaladsl.model.headers.Last$minusModified(((akka.http.scaladsl.model.DateTime) date));
}
}

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Link` header.
* Specification: http://tools.ietf.org/html/rfc5988#section-5
*/
public abstract class Link extends akka.http.model.HttpHeader {
public abstract class Link extends akka.http.scaladsl.model.HttpHeader {
public abstract Iterable<LinkValue> getValues();
public static Link create(LinkValue... values) {
return new akka.http.model.headers.Link(akka.http.model.japi.Util.<LinkValue, akka.http.model.headers.LinkValue>convertArray(values));
return new akka.http.scaladsl.model.headers.Link(akka.http.impl.util.Util.<LinkValue, akka.http.scaladsl.model.headers.LinkValue>convertArray(values));
}
}

View file

@ -2,11 +2,11 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.japi.MediaType;
import akka.http.model.japi.Uri;
import akka.http.model.japi.Util;
import akka.http.javadsl.model.MediaType;
import akka.http.javadsl.model.Uri;
import akka.http.impl.util.Util;
public abstract class LinkParam {
public abstract String key();

View file

@ -0,0 +1,43 @@
/**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.javadsl.model.headers;
import akka.http.javadsl.model.MediaType;
import akka.http.javadsl.model.Uri;
import akka.http.impl.util.Util;
public final class LinkParams {
private LinkParams() {}
public static final LinkParam next = akka.http.scaladsl.model.headers.LinkParams.next();
public static final LinkParam prev = akka.http.scaladsl.model.headers.LinkParams.prev();
public static final LinkParam first = akka.http.scaladsl.model.headers.LinkParams.first();
public static final LinkParam last = akka.http.scaladsl.model.headers.LinkParams.last();
public static LinkParam rel(String value) {
return new akka.http.scaladsl.model.headers.LinkParams.rel(value);
}
public static LinkParam anchor(Uri uri) {
return new akka.http.scaladsl.model.headers.LinkParams.anchor(Util.convertUriToScala(uri));
}
public static LinkParam rev(String value) {
return new akka.http.scaladsl.model.headers.LinkParams.rev(value);
}
public static LinkParam hreflang(Language language) {
return new akka.http.scaladsl.model.headers.LinkParams.hreflang((akka.http.scaladsl.model.headers.Language) language);
}
public static LinkParam media(String desc) {
return new akka.http.scaladsl.model.headers.LinkParams.media(desc);
}
public static LinkParam title(String title) {
return new akka.http.scaladsl.model.headers.LinkParams.title(title);
}
public static LinkParam title_All(String title) {
return new akka.http.scaladsl.model.headers.LinkParams.title$times(title);
}
public static LinkParam type(MediaType type) {
return new akka.http.scaladsl.model.headers.LinkParams.type((akka.http.scaladsl.model.MediaType) type);
}
}

View file

@ -2,18 +2,18 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.japi.Uri;
import akka.http.model.japi.Util;
import akka.http.javadsl.model.Uri;
import akka.http.impl.util.Util;
public abstract class LinkValue {
public abstract Uri getUri();
public abstract Iterable<LinkParam> getParams();
public static LinkValue create(Uri uri, LinkParam... params) {
return new akka.http.model.headers.LinkValue(
return new akka.http.scaladsl.model.headers.LinkValue(
Util.convertUriToScala(uri),
Util.<LinkParam, akka.http.model.headers.LinkParam>convertArray(params));
Util.<LinkParam, akka.http.scaladsl.model.headers.LinkParam>convertArray(params));
}
}

View file

@ -2,18 +2,18 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
import akka.http.model.japi.Uri;
import akka.http.javadsl.model.Uri;
/**
* Model for the `Location` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-7.1.2
*/
public abstract class Location extends akka.http.model.HttpHeader {
public abstract class Location extends akka.http.scaladsl.model.HttpHeader {
public abstract Uri getUri();
public static Location create(Uri uri) {
return new akka.http.model.headers.Location(akka.http.model.japi.Util.convertUriToScala(uri));
return new akka.http.scaladsl.model.headers.Location(akka.http.impl.util.Util.convertUriToScala(uri));
}
}

View file

@ -0,0 +1,9 @@
/**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.javadsl.model.headers;
public abstract class OAuth2BearerToken extends akka.http.scaladsl.model.headers.HttpCredentials {
public abstract String token();
}

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Origin` header.
* Specification: http://tools.ietf.org/html/rfc6454#section-7
*/
public abstract class Origin extends akka.http.model.HttpHeader {
public abstract class Origin extends akka.http.scaladsl.model.HttpHeader {
public abstract Iterable<HttpOrigin> getOrigins();
public static Origin create(HttpOrigin... origins) {
return new akka.http.model.headers.Origin(akka.http.model.japi.Util.<HttpOrigin, akka.http.model.headers.HttpOrigin>convertArray(origins));
return new akka.http.scaladsl.model.headers.Origin(akka.http.impl.util.Util.<HttpOrigin, akka.http.scaladsl.model.headers.HttpOrigin>convertArray(origins));
}
}

View file

@ -2,7 +2,7 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
public abstract class ProductVersion {
public abstract String product();
@ -10,7 +10,7 @@ public abstract class ProductVersion {
public abstract String comment();
public static ProductVersion create(String product, String version, String comment) {
return new akka.http.model.headers.ProductVersion(product, version, comment);
return new akka.http.scaladsl.model.headers.ProductVersion(product, version, comment);
}
public static ProductVersion create(String product, String version) {
return create(product, version, "");

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Proxy-Authenticate` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p7-auth-26#section-4.3
*/
public abstract class ProxyAuthenticate extends akka.http.model.HttpHeader {
public abstract class ProxyAuthenticate extends akka.http.scaladsl.model.HttpHeader {
public abstract Iterable<HttpChallenge> getChallenges();
public static ProxyAuthenticate create(HttpChallenge... challenges) {
return new akka.http.model.headers.Proxy$minusAuthenticate(akka.http.model.japi.Util.<HttpChallenge, akka.http.model.headers.HttpChallenge>convertArray(challenges));
return new akka.http.scaladsl.model.headers.Proxy$minusAuthenticate(akka.http.impl.util.Util.<HttpChallenge, akka.http.scaladsl.model.headers.HttpChallenge>convertArray(challenges));
}
}

View file

@ -2,16 +2,16 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Proxy-Authorization` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p7-auth-26#section-4.4
*/
public abstract class ProxyAuthorization extends akka.http.model.HttpHeader {
public abstract class ProxyAuthorization extends akka.http.scaladsl.model.HttpHeader {
public abstract HttpCredentials credentials();
public static ProxyAuthorization create(HttpCredentials credentials) {
return new akka.http.model.headers.Proxy$minusAuthorization(((akka.http.model.headers.HttpCredentials) credentials));
return new akka.http.scaladsl.model.headers.Proxy$minusAuthorization(((akka.http.scaladsl.model.headers.HttpCredentials) credentials));
}
}

View file

@ -2,17 +2,17 @@
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.http.model.japi.headers;
package akka.http.javadsl.model.headers;
/**
* Model for the `Range` header.
* Specification: http://tools.ietf.org/html/draft-ietf-httpbis-p5-range-26#section-3.1
*/
public abstract class Range extends akka.http.model.HttpHeader {
public abstract class Range extends akka.http.scaladsl.model.HttpHeader {
public abstract RangeUnit rangeUnit();
public abstract Iterable<ByteRange> getRanges();
public static Range create(RangeUnit rangeUnit, ByteRange... ranges) {
return new akka.http.model.headers.Range(((akka.http.model.headers.RangeUnit) rangeUnit), akka.http.model.japi.Util.<ByteRange, akka.http.model.headers.ByteRange>convertArray(ranges));
return new akka.http.scaladsl.model.headers.Range(((akka.http.scaladsl.model.headers.RangeUnit) rangeUnit), akka.http.impl.util.Util.<ByteRange, akka.http.scaladsl.model.headers.ByteRange>convertArray(ranges));
}
}

Some files were not shown because too many files have changed in this diff Show more