|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jersey.core.header.ContentDisposition
public class ContentDisposition
A content disposition header.
Nested Class Summary | |
---|---|
static class |
ContentDisposition.ContentDispositionBuilder<T extends ContentDisposition.ContentDispositionBuilder,V extends ContentDisposition>
Builder to build content disposition. |
Constructor Summary | |
---|---|
|
ContentDisposition(HttpHeaderReader reader)
|
|
ContentDisposition(String header)
|
protected |
ContentDisposition(String type,
String fileName,
Date creationDate,
Date modificationDate,
Date readDate,
long size)
|
Method Summary | |
---|---|
protected void |
addDateParameter(StringBuilder sb,
String name,
Date p)
|
protected void |
addLongParameter(StringBuilder sb,
String name,
Long p)
|
protected void |
addStringParameter(StringBuilder sb,
String name,
String p)
|
Date |
getCreationDate()
Get the creation-date parameter. |
String |
getFileName()
Get the filename parameter. |
Date |
getModificationDate()
Get the modification-date parameter. |
Map<String,String> |
getParameters()
Get the parameters. |
Date |
getReadDate()
Get the read-date parameter. |
long |
getSize()
Get the size parameter. |
String |
getType()
Get the type. |
String |
toString()
Convert the disposition to a "Content-Disposition" header value. |
protected StringBuilder |
toStringBuffer()
|
static ContentDisposition.ContentDispositionBuilder |
type(String type)
Start building content disposition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ContentDisposition(String type, String fileName, Date creationDate, Date modificationDate, Date readDate, long size)
public ContentDisposition(String header) throws ParseException
ParseException
public ContentDisposition(HttpHeaderReader reader) throws ParseException
ParseException
Method Detail |
---|
public String getType()
public Map<String,String> getParameters()
public String getFileName()
public Date getCreationDate()
public Date getModificationDate()
public Date getReadDate()
public long getSize()
public String toString()
toString
in class Object
protected StringBuilder toStringBuffer()
protected void addStringParameter(StringBuilder sb, String name, String p)
protected void addDateParameter(StringBuilder sb, String name, Date p)
protected void addLongParameter(StringBuilder sb, String name, Long p)
public static ContentDisposition.ContentDispositionBuilder type(String type)
type
- the disposition typr.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |