blob: ab20062cd8893dea653099ee9badb3e66c4e479a [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.synapse.rest;
public class RESTConstants {
public static enum METHODS {
GET, POST, PUT, DELETE, OPTIONS
}
public static final int PROTOCOL_HTTP_AND_HTTPS = 0;
public static final int PROTOCOL_HTTP_ONLY = 1;
public static final int PROTOCOL_HTTPS_ONLY = 2;
public static final String REST_FULL_REQUEST_PATH = "REST_FULL_REQUEST_PATH";
public static final String REST_SUB_REQUEST_PATH = "REST_SUB_REQUEST_PATH";
public static final String REST_METHOD = "REST_METHOD";
public static final String METHOD_OPTIONS = "OPTIONS";
public static final String REST_ALL_SUPPORTED_METHODS = "GET, POST, PUT, DELETE";
public static final String REST_URI_VARIABLE_PREFIX = "uri.var.";
public static final String REST_QUERY_PARAM_PREFIX = "query.param.";
public static final String SYNAPSE_RESOURCE = "SYNAPSE_RESOURCE";
public static final String SYNAPSE_REST_API = "SYNAPSE_REST_API";
public static final String SYNAPSE_REST_API_VERSION = "SYNAPSE_REST_API_VERSION";
public static final String REST_API_CONTEXT = "REST_API_CONTEXT";
public static final String REST_URL_PREFIX = "REST_URL_PREFIX";
public static final String DEFAULT_ENCODING = "UTF-8";
public static final String NO_MATCHING_RESOURCE_HANDLER = "_resource_mismatch_handler_";
/** The Synapse MC property that indicates the in-transport */
public static final String REST_API_IN_TRANSPORT = "REST_API_IN_TRANSPORT";
/** The Synapse MC property that marks if the message was denied on the accessed transport */
public static final String REST_API_TRANSPORT_DENIED = "REST_API_TRANSPORT_DENIED";
}