|
||||||||||
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.io.InputStream contents,
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. |
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)
Deprecated. Since 5.5.5. Use computeAttachmentHeaders(java.io.InputStream, String, String, String, long, boolean, java.util.Map)
instead. |
Method Detail |
---|
java.util.Map<java.lang.String,java.lang.String> computeAttachmentHeaders(java.io.InputStream contents, 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) throws java.io.IOException
contents
- attachment contentscontentType
- 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
java.io.IOException
- if the attachments contents could not be read@Deprecated 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)
computeAttachmentHeaders(java.io.InputStream, String, String, String, long, boolean, java.util.Map)
instead.
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 |