org.ow2.petals.binding.rest.RESTConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of petals-bc-rest Show documentation
Show all versions of petals-bc-rest Show documentation
petals-bc-rest Binding Component description
/**
* Copyright (c) 2007-2012 EBM WebSourcing, 2012-2016 Linagora
*
* This program/library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 2.1 of the License, or (at your
* option) any later version.
*
* This program/library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program/library; If not, see http://www.gnu.org/licenses/
* for the GNU Lesser General Public License version 2.1.
*/
package org.ow2.petals.binding.rest;
public class RESTConstants {
public static final class NormalizedMessageProperties {
public static final String DEFAULT_JBI_PROPERTY_PREFIX = "org.ow2.petals.binding.rest.param.";
public static final String HTTP_BODY_ATTACHMENT = "org.ow2.petals.binding.rest.attachment.";
// To prevent from instantiating this class
private NormalizedMessageProperties() {
throw new AssertionError();
}
}
public static final class HTTPRequest {
public static final String ACCEPT_HTTP_HEADER = "Accept";
public static final String ACCEPTED_MEDIA_TYPES_SERVLET_ATTRIBUTE_NAME = "org.ow2.petals.binding.rest.accepted-media-types";
// To prevent from instantiating this class
private HTTPRequest() {
throw new AssertionError();
}
}
public static final class HTTPServer {
public static final int HTTP_DEFAULT_SERVER_PORT = 8086;
// To prevent from instantiating this class
private HTTPServer() {
throw new AssertionError();
}
}
public static final class WSDL2 {
public static final String URI_WSDL2_HTTP = "http://www.w3.org/ns/wsdl/http";
// To prevent from instantiating this class
private WSDL2() {
throw new AssertionError();
}
}
public static final class SUParameter {
public static final String MAPPING = "mapping";
public static final String OPERATION = "operation";
// To prevent from instantiating this class
private SUParameter() {
throw new AssertionError();
}
}
public static final class ConsumesParameter {
public static final String SERVICE_BASE_PATH = "service-base-path";
public static final String OPERATION_NAME = "name";
public static final String PATH = "path-template";
public static final String XML_TEMPLATE = "xml-template";
public static final String HTTP_METHOD = "http-method";
public static final String JBI_PROPERTY_PREFIX = "jbi-property-prefix";
public static final String JSON_XML_MAPPING_CONVENTION = "json-xml-mapping-convention";
// To prevent from instantiating this class
private ConsumesParameter() {
throw new AssertionError();
}
}
public static final class ProvidesParameter {
public static final String WSDL = "wsdl";
public static final String OPERATION_NAME = "name";
public static final String HTTP_METHOD = "http-method";
public static final String XPATH_PARAM = "xpath-param";
public static final String XPATH_PARAM_NAME = "name";
public static final String URI = "uri";
public static final String HTTP_BODY_TYPE = "http-body-type";
public static final String JSON_XML_MAPPING_CONVENTION = "json-xml-mapping-convention";
public static final String POST_QUERY = "post-query";
// To prevent from instantiating this class
private ProvidesParameter() {
throw new AssertionError();
}
}
public static final class ComponentParameter {
public static final String HTTP_HOST = "http-host";
public static final String HTTP_PORT = "http-port";
// To prevent from instantiating this class
private ComponentParameter() {
throw new AssertionError();
}
}
// To prevent from instantiating this class
private RESTConstants() {
throw new AssertionError();
}
}