001/* 002 * The contents of this file are subject to the terms of the Common Development and 003 * Distribution License (the License). You may not use this file except in compliance with the 004 * License. 005 * 006 * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the 007 * specific language governing permission and limitations under the License. 008 * 009 * When distributing Covered Software, include this CDDL Header Notice in each file and include 010 * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL 011 * Header, with the fields enclosed by brackets [] replaced by your own identifying 012 * information: "Portions copyright [year] [name of copyright owner]". 013 * 014 * Copyright 2013 ForgeRock AS. 015 */ 016 017package org.forgerock.json.resource; 018 019/** 020 * An enumeration whose values represent the different types of request. 021 */ 022public enum RequestType { 023 024 /** 025 * An action request. 026 * 027 * @see ActionRequest 028 */ 029 ACTION, 030 031 /** 032 * A create request. 033 * 034 * @see CreateRequest 035 */ 036 CREATE, 037 038 /** 039 * A delete request. 040 * 041 * @see DeleteRequest 042 */ 043 DELETE, 044 045 /** 046 * A patch request. 047 * 048 * @see PatchRequest 049 */ 050 PATCH, 051 052 /** 053 * A query request. 054 * 055 * @see QueryRequest 056 */ 057 QUERY, 058 059 /** 060 * A read request. 061 * 062 * @see ReadRequest 063 */ 064 READ, 065 066 /** 067 * An update request. 068 * 069 * @see UpdateRequest 070 */ 071 UPDATE; 072}