public class JarFileContent
extends ReadChannelContent
Represents an class OutgoingContent for a resource inside a Jar file
class OutgoingContentOutgoingContent.ByteArrayContent, OutgoingContent.NoContent, OutgoingContent.ProtocolUpgrade, OutgoingContent.ReadChannelContent, OutgoingContent.WriteChannelContent| Constructor and Description |
|---|
JarFileContent(java.io.File jarFile,
java.lang.String resourcePath,
ContentType contentType)
Represents an
class OutgoingContent for a resource inside a Jar file |
JarFileContent(java.nio.file.Path zipFilePath,
java.lang.String resourcePath,
ContentType contentType) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getContentLength()
Specifies content length in bytes for this resource.
|
ContentType |
getContentType()
Specifies
|
java.io.File |
getJarFile()
is an instance of
|
java.lang.String |
getResourcePath()
is an instance of a resource inside a Jar file
|
kotlinx.coroutines.io.ByteReadChannel |
readFrom()
Provides ByteReadChannel for the content
|
readFrom, readFromgetContentLength, getContentType, getHeaders, getProperty, getStatus, setPropertypublic JarFileContent(java.io.File jarFile,
java.lang.String resourcePath,
ContentType contentType)
Represents an class OutgoingContent for a resource inside a Jar file
jarFile - is an instance of File representing a JarresourcePath - is an instance of a resource inside a Jar filecontentType - Specifies class ContentType for this resource.jarFile - is an instance of File representing a JarresourcePath - is an instance of a resource inside a Jar fileclass OutgoingContentpublic JarFileContent(java.nio.file.Path zipFilePath,
java.lang.String resourcePath,
ContentType contentType)
public java.lang.Long getContentLength()
Specifies content length in bytes for this resource.
If null, the resources will be sent as Transfer-Encoding: chunked
public kotlinx.coroutines.io.ByteReadChannel readFrom()
Provides ByteReadChannel for the content
public java.io.File getJarFile()
is an instance of
File representing a Jar
public java.lang.String getResourcePath()
is an instance of a resource inside a Jar file
public ContentType getContentType()
Specifies
class ContentType for this resource.
class ContentType