All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adobe.granite.haf.annotations.ApiHeader Maven / Gradle / Ivy

There is a newer version: 2024.11.18751.20241128T090041Z-241100
Show newest version
/*************************************************************************
 *
 * ADOBE CONFIDENTIAL
 * __________________
 *
 *  Copyright 2016 Adobe Systems Incorporated
 *  All Rights Reserved.
 *
 * NOTICE:  All information contained herein is, and remains
 * the property of Adobe Systems Incorporated and its suppliers,
 * if any.  The intellectual and technical concepts contained
 * herein are proprietary to Adobe Systems Incorporated and its
 * suppliers and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Adobe Systems Incorporated.
 **************************************************************************/

package com.adobe.granite.haf.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation for defining headers to be set in the response to read requests for the Resource described by the
 * model.  Can be used on a public field or method.  The return type must be a String, iterator of strings, or a
 * collection of strings that is iterable.  If a method is annotated and it takes in a ConverterContext in order
 * to get information from the request that will be injected into the method.
 */
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ApiHeader {
    /**
     * The header's key
     * @return the header's key
     */
    String value();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy