Package fr.becpg.repo.helper
Class AttachmentHelper
java.lang.Object
fr.becpg.repo.helper.AttachmentHelper
AttachmentHelper class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringConstantHEADER_USER_AGENT="User-Agent" -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringfilterNameForQuotedString.private static booleanisValidQuotedStringHeaderParamChar.static voidsetAttachment(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res, String attachFileName) setAttachment.
-
Field Details
-
HEADER_USER_AGENT
ConstantHEADER_USER_AGENT="User-Agent"- See Also:
-
-
Constructor Details
-
AttachmentHelper
private AttachmentHelper()Constructor for AttachmentHelper.
-
-
Method Details
-
setAttachment
public static void setAttachment(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res, String attachFileName) setAttachment.
- Parameters:
req- aWebScriptRequestobject.res- aWebScriptResponseobject.attachFileName- aStringobject.
-
filterNameForQuotedString
filterNameForQuotedString.
-
isValidQuotedStringHeaderParamChar
private static boolean isValidQuotedStringHeaderParamChar(char c) isValidQuotedStringHeaderParamChar.
- Parameters:
c- a char- Returns:
- a boolean
-