public class ContentDisposition
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ContentDisposition.ContentDispositionBuilder<T extends ContentDisposition.ContentDispositionBuilder<T,V>,V extends ContentDisposition>
Builder to build content disposition.
|
Modifier | Constructor and Description |
---|---|
|
ContentDisposition(HttpHeaderReader reader) |
|
ContentDisposition(HttpHeaderReader reader,
boolean fileNameFix) |
|
ContentDisposition(java.lang.String header) |
|
ContentDisposition(java.lang.String header,
boolean fileNameFix) |
protected |
ContentDisposition(java.lang.String type,
java.lang.String fileName,
java.util.Date creationDate,
java.util.Date modificationDate,
java.util.Date readDate,
long size) |
Modifier and Type | Method and Description |
---|---|
protected void |
addDateParameter(java.lang.StringBuilder sb,
java.lang.String name,
java.util.Date p) |
protected void |
addLongParameter(java.lang.StringBuilder sb,
java.lang.String name,
java.lang.Long p) |
protected void |
addStringParameter(java.lang.StringBuilder sb,
java.lang.String name,
java.lang.String p) |
java.util.Date |
getCreationDate()
Get the creation-date parameter.
|
java.lang.String |
getFileName()
Get the filename parameter.
|
java.util.Date |
getModificationDate()
Get the modification-date parameter.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
Get the parameters.
|
java.util.Date |
getReadDate()
Get the read-date parameter.
|
long |
getSize()
Get the size parameter.
|
java.lang.String |
getType()
Get the type.
|
java.lang.String |
toString()
Convert the disposition to a "Content-Disposition" header value.
|
protected java.lang.StringBuilder |
toStringBuffer() |
static ContentDisposition.ContentDispositionBuilder |
type(java.lang.String type)
Start building content disposition.
|
protected ContentDisposition(java.lang.String type, java.lang.String fileName, java.util.Date creationDate, java.util.Date modificationDate, java.util.Date readDate, long size)
public ContentDisposition(java.lang.String header) throws java.text.ParseException
java.text.ParseException
public ContentDisposition(java.lang.String header, boolean fileNameFix) throws java.text.ParseException
java.text.ParseException
public ContentDisposition(HttpHeaderReader reader) throws java.text.ParseException
java.text.ParseException
public ContentDisposition(HttpHeaderReader reader, boolean fileNameFix) throws java.text.ParseException
java.text.ParseException
public java.lang.String getType()
public java.util.Map<java.lang.String,java.lang.String> getParameters()
public java.lang.String getFileName()
public java.util.Date getCreationDate()
public java.util.Date getModificationDate()
public java.util.Date getReadDate()
public long getSize()
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.StringBuilder toStringBuffer()
protected void addStringParameter(java.lang.StringBuilder sb, java.lang.String name, java.lang.String p)
protected void addDateParameter(java.lang.StringBuilder sb, java.lang.String name, java.util.Date p)
protected void addLongParameter(java.lang.StringBuilder sb, java.lang.String name, java.lang.Long p)
public static ContentDisposition.ContentDispositionBuilder type(java.lang.String type)
type
- the disposition typr.Copyright © 2016 Oracle Corporation. All Rights Reserved.