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.http.api; 007 008import org.springframework.beans.factory.annotation.Value; 009import org.springframework.stereotype.Component; 010 011/** 012 * @author cabeer 013 * @since 10/17/14 014 */ 015@Component 016public class FedoraHttpConfiguration { 017 018 @Value("${fcrepo.http.ldp.putRequiresIfMatch:false}") 019 private boolean putRequiresIfMatch; 020 021 /** 022 * Should PUT requests require an If-Match header? 023 * @return put request if match 024 */ 025 public boolean putRequiresIfMatch() { 026 return putRequiresIfMatch; 027 } 028}