001/* 002 * The contents of this file are subject to the license and copyright 003 * detailed in the LICENSE and NOTICE files at the root of the source 004 * tree. 005 */ 006package org.fcrepo.client; 007 008/** 009 * Header constants used in calls to the Fedora API 010 * 011 * @author bbpennel 012 */ 013public class FedoraHeaderConstants { 014 015 public static final String CONTENT_TYPE = "Content-Type"; 016 017 public static final String CONTENT_DISPOSITION = "Content-Disposition"; 018 019 public static final String CONTENT_DISPOSITION_FILENAME = "filename"; 020 021 public static final String CONTENT_DISPOSITION_CREATION_DATE = "creation-date"; 022 023 public static final String CONTENT_DISPOSITION_MODIFICATION_DATE = "modification-date"; 024 025 public static final String CONTENT_DISPOSITION_SIZE = "size"; 026 027 public static final String SLUG = "Slug"; 028 029 public static final String DIGEST = "digest"; 030 031 public static final String LOCATION = "Location"; 032 033 public static final String ACCEPT = "Accept"; 034 035 public static final String PREFER = "Prefer"; 036 037 public static final String RANGE = "Range"; 038 039 public static final String IF_NONE_MATCH = "If-None-Match"; 040 041 public static final String IF_MODIFIED_SINCE = "If-Modified-Since"; 042 043 public static final String IF_MATCH = "If-Match"; 044 045 public static final String IF_UNMODIFIED_SINCE = "If-Unmodified-Since"; 046 047 public static final String LAST_MODIFIED = "Last-Modified"; 048 049 public static final String ETAG = "ETag"; 050 051 public static final String STATE_TOKEN = "X-State-Token"; 052 053 public static final String IF_STATE_TOKEN = "X-If-State-Token"; 054 055 public static final String DESTINATION = "Destination"; 056 057 public static final String LINK = "Link"; 058 059 public static final String WANT_DIGEST = "Want-Digest"; 060 061 public static final String CACHE_CONTROL = "Cache-Control"; 062 063 /** 064 * Datetime for a memento, either provided when creating the memento or returned when retrieving one. 065 */ 066 public static final String MEMENTO_DATETIME = "Memento-Datetime"; 067 068 public static final String ACCEPT_DATETIME = "Accept-Datetime"; 069 070 private FedoraHeaderConstants() { 071 } 072}