|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SafeContentHeaderGuesser
Computes a safe content type given an existing content type and filename.
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
computeAttachmentHeaders(java.lang.String contentType,
java.lang.String name,
java.lang.String userAgent,
long contentLength,
boolean hasXsrfToken,
java.util.Map<java.lang.String,java.lang.String> httpQueryParams)
Returns a map of headers with their values. |
Method Detail |
---|
java.util.Map<java.lang.String,java.lang.String> computeAttachmentHeaders(java.lang.String contentType, java.lang.String name, java.lang.String userAgent, long contentLength, boolean hasXsrfToken, java.util.Map<java.lang.String,java.lang.String> httpQueryParams)
contentType
- the existing content-type that the attachment has.name
- the filename of the attachmentuserAgent
- the user agent of the client requesting the attachmentcontentLength
- the length of the attachmenthttpQueryParams
- a map of the http query parameters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |