JarFileContent

class JarFileContent(jarFile: File, resourcePath: String, contentType: ContentType) : OutgoingContent.ReadChannelContent

Represents an OutgoingContent for a resource inside a Jar file

Parameters

jarFile

is an instance of File representing a Jar

resourcePath

is an instance of a resource inside a Jar file

Constructors

Link copied to clipboard
fun JarFileContent(zipFilePath: Path, resourcePath: String, contentType: ContentType)
Link copied to clipboard
fun JarFileContent(jarFile: File, resourcePath: String, contentType: ContentType)

Functions

Link copied to clipboard
open fun <T : Any> getProperty(key: AttributeKey<T>): T?
Link copied to clipboard
open override fun readFrom(): ByteReadChannel
open fun readFrom(range: LongRange): ByteReadChannel
Link copied to clipboard
open fun <T : Any> setProperty(key: AttributeKey<T>, value: T?)

Properties

Link copied to clipboard
open override val contentLength: Long?
Link copied to clipboard
open override val contentType: ContentType
Link copied to clipboard
open val headers: Headers
Link copied to clipboard
val isFile: Boolean
Link copied to clipboard
val jarFile: File
Link copied to clipboard
val resourcePath: String
Link copied to clipboard
open val status: HttpStatusCode?