/** * Creates a BodyPart backed by a file that will be streamed using a FileSource. */ public static Multipart.FormData.BodyPart createFormDataPartFromPath(String name, ContentType contentType, Path path, int chunkSize) { return akka.http.scaladsl.model.Multipart$FormData$BodyPart$.MODULE$.fromPath(name, (akka.http.scaladsl.model.ContentType) contentType, path, chunkSize); }
/** * 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); }
/** * 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); }
/** * Creates a custom media type. */ public static MediaType custom(String value, boolean binary, boolean compressible) { akka.http.scaladsl.model.MediaType.Compressibility comp = compressible ? akka.http.scaladsl.model.MediaType.Compressible$.MODULE$ : akka.http.scaladsl.model.MediaType.NotCompressible$.MODULE$; return akka.http.scaladsl.model.MediaType.custom(value, binary, comp , akka.http.scaladsl.model.MediaType.custom$default$4()); }
/** * 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.scaladsl.model.DateTime.apply(year, month, day, hour, minute, second); } }
/** * 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); }
/** * Parse the given Host string using the given charset and parsing-mode. */ public static Host create(String string, Charset charset, Uri.ParsingMode parsingMode) { return akka.http.scaladsl.model.Uri.Host$.MODULE$.apply(string, charset, parsingMode); } }
/** * Creates a chunk from data and extension. */ public static ChunkStreamPart create(ByteString data, String extension) { return new akka.http.scaladsl.model.HttpEntity.Chunk(data, extension); }
/** * Creates a FormData instance that contains a single part backed by the given file. * * To create an instance with several parts or for multiple files, use * `Multiparts.createFormDataFromParts(Multiparts.createFormDataPartFromPath("field1", ...), Multiparts.createFormDataPartFromPath("field2", ...)` */ public static Multipart.FormData createFormDataFromPath(String name, ContentType contentType, Path path) { return akka.http.scaladsl.model.Multipart.FormData$.MODULE$.fromPath(name, (akka.http.scaladsl.model.ContentType) contentType, path, -1); }
/** * 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.scaladsl.model.DateTime.apply(year, month, day, hour, minute, second); } }
/** * 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 BodyPart backed by a file that will be streamed using a FileSource. */ public static Multipart.FormData.BodyPart createFormDataPartFromPath(String name, ContentType contentType, Path path) { return akka.http.scaladsl.model.Multipart$FormData$BodyPart$.MODULE$.fromPath(name, (akka.http.scaladsl.model.ContentType) contentType, path, -1); }
/** * 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); }
/** * 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); }
/** * Parse the given Host string using the given charset and parsing-mode. */ public static Host create(String string, Charset charset, Uri.ParsingMode parsingMode) { return akka.http.scaladsl.model.Uri.Host$.MODULE$.apply(string, charset, parsingMode); } }
/** * Creates a FormData instance that contains a single part backed by the given file. * * To create an instance with several parts or for multiple files, use * `Multiparts.createFormDataFromParts(Multiparts.createFormDataPartFromPath("field1", ...), Multiparts.createFormDataPartFromPath("field2", ...)` */ public static Multipart.FormData createFormDataFromPath(String name, ContentType contentType, Path path, int chunkSize) { return akka.http.scaladsl.model.Multipart.FormData$.MODULE$.fromPath(name, (akka.http.scaladsl.model.ContentType) contentType, path, chunkSize); }
/** * 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.scaladsl.model.DateTime.apply(year, month, day, hour, minute, second); } }
/** * 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); } }
/** * Creates a BodyPart backed by a file that will be streamed using a FileSource. */ public static Multipart.FormData.BodyPart createFormDataPartFromPath(String name, ContentType contentType, Path path, int chunkSize) { return akka.http.scaladsl.model.Multipart$FormData$BodyPart$.MODULE$.fromPath(name, (akka.http.scaladsl.model.ContentType) contentType, path, chunkSize); }
/** * Creates a BodyPart backed by a file that will be streamed using a FileSource. */ public static Multipart.FormData.BodyPart createFormDataPartFromPath(String name, ContentType contentType, Path path) { return akka.http.scaladsl.model.Multipart$FormData$BodyPart$.MODULE$.fromPath(name, (akka.http.scaladsl.model.ContentType) contentType, path, -1); }