public class ContentDisposition
extends HeaderValueWithParameters
Represents Content-Disposition
header value
Modifier and Type | Class and Description |
---|---|
static class |
ContentDisposition.Companion |
static class |
ContentDisposition.Parameters
Frequently used content disposition parameter names
|
Modifier and Type | Field and Description |
---|---|
static ContentDisposition.Companion |
Companion |
Constructor and Description |
---|
ContentDisposition(java.lang.String disposition,
java.util.List<io.ktor.http.HeaderValueParam> parameters)
Represents
Content-Disposition header value |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getDisposition()
Content disposition value without parameters
|
java.lang.String |
getName()
Content disposition name (from parameter named
name ) |
int |
hashCode() |
ContentDisposition |
withParameter(java.lang.String key,
java.lang.String value)
Creates new with parameter appended
|
ContentDisposition |
withParameters(java.util.List<io.ktor.http.HeaderValueParam> newParameters)
Creates new with parameters appended
|
getContent, getParameters, parameter, toString
public static ContentDisposition.Companion Companion
public ContentDisposition(java.lang.String disposition, java.util.List<io.ktor.http.HeaderValueParam> parameters)
Represents Content-Disposition
header value
public java.lang.String getDisposition()
Content disposition value without parameters
public java.lang.String getName()
Content disposition name (from parameter named name
)
public ContentDisposition withParameter(java.lang.String key, java.lang.String value)
Creates new with parameter appended
public ContentDisposition withParameters(java.util.List<io.ktor.http.HeaderValueParam> newParameters)
Creates new with parameters appended
public boolean equals(java.lang.Object other)
public int hashCode()