org.ow2.petals.binding.rest.RESTConstants Maven / Gradle / Ivy
/**
* Copyright (c) 2007-2012 EBM WebSourcing, 2012-2020 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 String XSL_PLACEHOLDER_PARAM_OUTPUT_NAMESPACE = "http://petals.ow2.org/bc/rest/xsl/param/output/1.0/placeholders";
public static final class NormalizedMessageProperties {
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 HTTPServer {
/**
* By default, the HTTP server is bind to all network interfaces
*/
public static final String DEFAULT_HTTP_SERVER_HOSTNAME = "0.0.0.0";
public static final int DEFAULT_HTTP_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 NAMESPACE_SU_PARAM = "http://petals.ow2.org/components/rest/version-1";
public static final String MAPPING = "mapping";
// To prevent from instantiating this class
private SUParameter() {
throw new AssertionError();
}
}
public static class CommonServicesParameter {
public static final String HTTP_BODY_TO_JSON_AUTO_ARRAY = "http-body-to-json-auto-array";
public static final String HTTP_BODY_TO_JSON_AUTO_PRIMITIVE = "http-body-to-json-auto-primitive";
public static final String HTTP_BODY_TO_JSON_MULTIPLE_PI = "http-body-to-json-multiple-pi";
public static final String HTTP_BODY_TO_JSON_VIRTUAL_ROOT = "http-body-to-json-virtual-root";
public static final String HTTP_BODY_TO_JSON_PRETTY_PRINT = "http-body-to-json-pretty-print";
public static final String HTTP_BODY_TO_JSON_NS_DECL = "http-body-to-json-ns-declarations";
public static final String HTTP_BODY_FROM_JSON_MULTIPLE_PI = "http-body-from-json-multiple-pi";
public static final String HTTP_BODY_FROM_JSON_VIRTUAL_ROOT = "http-body-from-json-virtual-root";
public static final String NAMESPACE_MAPPING = "namespace-mapping";
public static final String NAMESPACE_MAPPING_PREFIX = "prefix";
// To prevent from instantiating this class
private CommonServicesParameter() {
throw new AssertionError();
}
}
public static final class ConsumesParameter extends CommonServicesParameter {
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";
// To prevent from instantiating this class
private ConsumesParameter() {
throw new AssertionError();
}
}
public static final class ProvidesParameter extends CommonServicesParameter {
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 HEADERS = "headers";
public static final String AUTHENTICATION = "authentication";
public static final String BUFFER_REQUEST = "buffer-request";
public static final String COOKIE_POLICY = "cookie-policy";
public static final String TRUST_ALL_CERTIFICATES = "trust-all-certificates";
public static final String XPATH_PARAM = "xpath-param";
public static final String XPATH_PARAM_NAME = "name";
public static final String FORM_DATA_PARAM = "form-data";
public static final String FORM_DATA_PARAM_NAME = "name";
public static final String FORM_DATA_PARAM_AS_ATTACHMENT = "as-attachment";
public static final String FORM_DATA_PARAM_ATTACHMENT_NAME = "attachment-name";
public static final String FORM_DATA_PARAM_XPATH = "extracted-by-xpath";
public static final String ON_HTTP_STATUS = "on-http-status";
public static final String HTTP_CODE = "code";
public static final String XSL = "xsl";
public static final String IS_JSON_RESULT = "is-json-result";
public static final String URI = "uri";
public static final String HTTP_BODY_TYPE = "http-body-type";
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";
/**
* Component JBI descriptor parameter name for the connection timeout
*/
public static final String CONNECTION_TIMEOUT = "connection-timeout";
/**
* Default value of the connection timeout
*/
public static final long DEFAULT_CONNECTION_TIMEOUT = 60000l;
/**
* Component JBI descriptor parameter name for the read timeout
*/
public static final String READ_TIMEOUT = "read-timeout";
/**
* Default value of the read timeout
*/
public static final long DEFAULT_READ_TIMEOUT = 60000l;
// To prevent from instantiating this class
private ComponentParameter() {
throw new AssertionError();
}
}
// To prevent from instantiating this class
private RESTConstants() {
throw new AssertionError();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy