public class URIFileContent
extends ReadChannelContent
Represents a content that is served from the specified uri
OutgoingContent.ByteArrayContent, OutgoingContent.NoContent, OutgoingContent.ProtocolUpgrade, OutgoingContent.ReadChannelContent, OutgoingContent.WriteChannelContent| Constructor and Description |
|---|
URIFileContent(java.net.URI uri,
ContentType contentType)
Represents a content that is served from the specified uri
|
URIFileContent(java.net.URL url,
ContentType contentType) |
| Modifier and Type | Method and Description |
|---|---|
ContentType |
getContentType()
Specifies
|
java.net.URI |
getUri()
that is used as a source
|
kotlinx.coroutines.io.ByteReadChannel |
readFrom()
Provides ByteReadChannel for the content
|
readFrom, readFromgetContentLength, getContentType, getHeaders, getProperty, getStatus, setPropertypublic URIFileContent(java.net.URI uri,
ContentType contentType)
Represents a content that is served from the specified uri
uri - that is used as a sourcecontentType - Specifies class ContentType for this resource.public URIFileContent(java.net.URL url,
ContentType contentType)
public kotlinx.coroutines.io.ByteReadChannel readFrom()
Provides ByteReadChannel for the content
public java.net.URI getUri()
that is used as a source
public ContentType getContentType()
Specifies
class ContentType for this resource.
class ContentType