public final class GetAttachmentAction extends AbstractMailAction implements com.openexchange.ajax.requesthandler.ETagAwareAJAXActionService
COLUMNS_ALL_ALIAS, COLUMNS_LIST_ALIAS
ALL_LOG_PROPERTIES, PROPERTY_CLOSEABLES, PROPERTY_MAIL_IFACE
Constructor and Description |
---|
GetAttachmentAction(com.openexchange.server.ServiceLookup services)
Initializes a new
GetAttachmentAction . |
Modifier and Type | Method and Description |
---|---|
boolean |
checkETag(java.lang.String clientETag,
com.openexchange.ajax.requesthandler.AJAXRequestData request,
com.openexchange.tools.session.ServerSession session)
Checks for equality of passed client ETag compared to currently valid ETag for requested resource.
|
void |
setETag(java.lang.String eTag,
long expires,
com.openexchange.ajax.requesthandler.AJAXRequestResult result)
Sets specified ETag header with given optional expires value to specified request result.
|
detectDisplayMode, perform, triggerContactCollector
public GetAttachmentAction(com.openexchange.server.ServiceLookup services)
GetAttachmentAction
.services
- public boolean checkETag(java.lang.String clientETag, com.openexchange.ajax.requesthandler.AJAXRequestData request, com.openexchange.tools.session.ServerSession session) throws com.openexchange.exception.OXException
com.openexchange.ajax.requesthandler.ETagAwareAJAXActionService
A new expiry may be specified by setting "X-ETag-Expiry" header in passed AJAXRequestData
instance.
checkETag
in interface com.openexchange.ajax.requesthandler.ETagAwareAJAXActionService
clientETag
- The client's ETagrequest
- The request datasession
- The sessiontrue
if ETags are equal; otherwise false
com.openexchange.exception.OXException
- If checking ETag failspublic void setETag(java.lang.String eTag, long expires, com.openexchange.ajax.requesthandler.AJAXRequestResult result) throws com.openexchange.exception.OXException
com.openexchange.ajax.requesthandler.ETagAwareAJAXActionService
setETag
in interface com.openexchange.ajax.requesthandler.ETagAwareAJAXActionService
eTag
- The ETag header valueexpires
- The optional expires; set to -1
for no expiryresult
- The request resultcom.openexchange.exception.OXException
- If setting ETag fails