| /** |
| * 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.cxf.dosgi.dsw; |
| |
| import org.osgi.service.remoteserviceadmin.RemoteConstants; |
| |
| public final class Constants { |
| |
| // Constants from RFC 119, they should ultimately be picked up from an OSGi class. |
| @Deprecated |
| public static final String EXPORTED_INTERFACES = RemoteConstants.SERVICE_EXPORTED_INTERFACES; |
| @Deprecated |
| public static final String EXPORTED_INTERFACES_OLD = "osgi.remote.interfaces"; // for BW compatibility |
| |
| @Deprecated |
| public static final String EXPORTED_CONFIGS = RemoteConstants.SERVICE_EXPORTED_CONFIGS; |
| @Deprecated |
| public static final String EXPORTED_CONFIGS_OLD = "osgi.remote.configuration.type"; // for BW compatibility |
| |
| @Deprecated |
| public static final String EXPORTED_INTENTS = RemoteConstants.SERVICE_EXPORTED_INTENTS; |
| @Deprecated |
| public static final String EXPORTED_INTENTS_EXTRA = RemoteConstants.SERVICE_EXPORTED_INTENTS_EXTRA; |
| @Deprecated |
| public static final String EXPORTED_INTENTS_OLD = "osgi.remote.requires.intents"; |
| |
| @Deprecated |
| public static final String IMPORTED = RemoteConstants.SERVICE_IMPORTED; |
| @Deprecated |
| public static final String IMPORTD_CONFIGS = RemoteConstants.SERVICE_IMPORTED_CONFIGS; |
| |
| @Deprecated |
| public static final String INTENTS = RemoteConstants.SERVICE_INTENTS; |
| |
| // WSDL |
| public static final String WSDL_CONFIG_TYPE = "wsdl"; |
| public static final String WSDL_CONFIG_PREFIX = "osgi.remote.configuration" + "." + WSDL_CONFIG_TYPE; |
| public static final String WSDL_SERVICE_NAMESPACE = WSDL_CONFIG_PREFIX + ".service.ns"; |
| public static final String WSDL_SERVICE_NAME = WSDL_CONFIG_PREFIX + ".service.name"; |
| public static final String WSDL_PORT_NAME = WSDL_CONFIG_PREFIX + ".port.name"; |
| public static final String WSDL_LOCATION = WSDL_CONFIG_PREFIX + ".location"; |
| public static final String WSDL_HTTP_SERVICE_CONTEXT = WSDL_CONFIG_PREFIX + ".httpservice.context"; |
| // Provider prefix |
| public static final String PROVIDER_PREFIX = "org.apache.cxf"; |
| |
| // WS |
| public static final String WS_CONFIG_TYPE = PROVIDER_PREFIX + ".ws"; |
| public static final String WS_ADDRESS_PROPERTY = WS_CONFIG_TYPE + ".address"; |
| public static final String WS_PORT_PROPERTY = WS_CONFIG_TYPE + ".port"; |
| public static final String WS_HTTP_SERVICE_CONTEXT = WS_CONFIG_TYPE + ".httpservice.context"; |
| |
| public static final String WS_FRONTEND_PROP_KEY = WS_CONFIG_TYPE + ".frontend"; |
| public static final String WS_FRONTEND_JAXWS = "jaxws"; |
| public static final String WS_FRONTEND_SIMPLE = "simple"; |
| |
| public static final String WS_IN_INTERCEPTORS_PROP_KEY = WS_CONFIG_TYPE + ".in.interceptors"; |
| public static final String WS_OUT_INTERCEPTORS_PROP_KEY = WS_CONFIG_TYPE + ".out.interceptors"; |
| public static final String WS_OUT_FAULT_INTERCEPTORS_PROP_KEY = WS_CONFIG_TYPE + ".out.fault.interceptors"; |
| public static final String WS_IN_FAULT_INTERCEPTORS_PROP_KEY = WS_CONFIG_TYPE + ".in.fault.interceptors"; |
| public static final String WS_CONTEXT_PROPS_PROP_KEY = WS_CONFIG_TYPE + ".context.properties"; |
| public static final String WS_FEATURES_PROP_KEY = WS_CONFIG_TYPE + ".features"; |
| |
| public static final String WS_DATABINDING_PROP_KEY = WS_CONFIG_TYPE + ".databinding"; |
| public static final String WS_DATABINDING_BEAN_PROP_KEY = WS_DATABINDING_PROP_KEY + ".bean"; |
| public static final String WS_DATA_BINDING_JAXB = "jaxb"; |
| public static final String WS_DATA_BINDING_AEGIS = "aegis"; |
| |
| public static final String WS_WSDL_SERVICE_NAMESPACE = WS_CONFIG_TYPE + ".service.ns"; |
| public static final String WS_WSDL_SERVICE_NAME = WS_CONFIG_TYPE + ".service.name"; |
| public static final String WS_WSDL_PORT_NAME = WS_CONFIG_TYPE + ".port.name"; |
| public static final String WS_WSDL_LOCATION = WS_CONFIG_TYPE + ".wsdl.location"; |
| // Rest |
| public static final String RS_CONFIG_TYPE = PROVIDER_PREFIX + ".rs"; |
| public static final String RS_ADDRESS_PROPERTY = RS_CONFIG_TYPE + ".address"; |
| public static final String RS_HTTP_SERVICE_CONTEXT = RS_CONFIG_TYPE + ".httpservice.context"; |
| public static final String RS_DATABINDING_PROP_KEY = RS_CONFIG_TYPE + ".databinding"; |
| public static final String RS_IN_INTERCEPTORS_PROP_KEY = RS_CONFIG_TYPE + ".in.interceptors"; |
| public static final String RS_OUT_INTERCEPTORS_PROP_KEY = RS_CONFIG_TYPE + ".out.interceptors"; |
| public static final String RS_IN_FAULT_INTERCEPTORS_PROP_KEY = RS_CONFIG_TYPE + ".in.fault.interceptors"; |
| public static final String RS_OUT_FAULT_INTERCEPTORS_PROP_KEY = RS_CONFIG_TYPE + ".out.fault.interceptors"; |
| public static final String RS_CONTEXT_PROPS_PROP_KEY = RS_CONFIG_TYPE + ".context.properties"; |
| public static final String RS_FEATURES_PROP_KEY = RS_CONFIG_TYPE + ".features"; |
| public static final String RS_PROVIDER_PROP_KEY = RS_CONFIG_TYPE + ".provider"; |
| public static final String RS_PROVIDER_EXPECTED_PROP_KEY = RS_PROVIDER_PROP_KEY + ".expected"; |
| public static final String RS_PROVIDER_GLOBAL_PROP_KEY = RS_PROVIDER_PROP_KEY + ".globalquery"; |
| public static final String RS_WADL_LOCATION = RS_CONFIG_TYPE + ".wadl.location"; |
| // POJO (old value for WS) |
| public static final String WS_CONFIG_TYPE_OLD = "pojo"; |
| public static final String WS_CONFIG_OLD_PREFIX = "osgi.remote.configuration." + WS_CONFIG_TYPE_OLD; |
| public static final String WS_ADDRESS_PROPERTY_OLD = WS_CONFIG_OLD_PREFIX + ".address"; |
| public static final String WS_HTTP_SERVICE_CONTEXT_OLD = WS_CONFIG_OLD_PREFIX + ".httpservice.context"; |
| |
| // Common Configuration Properties |
| public static final String CHECK_BUNDLE = "check.bundle"; |
| |
| // The following constants are not evaluated anymore |
| @Deprecated |
| public static final String DEFAULT_PORT_CONFIG = "default.port"; |
| @Deprecated |
| public static final String DEFAULT_HOST_CONFIG = "default.host"; |
| @Deprecated |
| public static final String DEFAULT_PORT_VALUE = "9000"; |
| @Deprecated |
| public static final String DEFAULT_HOST_VALUE = "localhost"; |
| @Deprecated |
| public static final String USE_MASTER_MAP = "use.master.map"; |
| |
| // DSW Identification - TODO do we really need this one? |
| public static final String DSW_CLIENT_ID = PROVIDER_PREFIX + ".remote.dsw.client"; |
| |
| public static final String INTENT_NAME_PROP = "org.apache.cxf.dosgi.IntentName"; |
| |
| /** |
| * Prefix to create an absolute URL from a relative URL. |
| * See HttpServiceManager.getAbsoluteAddress |
| * |
| * Defaults to: http://<host name>:8181 |
| */ |
| public static final String HTTP_BASE = "httpBase"; |
| |
| /** |
| * Name of the cxf servlet alias |
| */ |
| public static final String CXF_SERVLET_ALIAS = "cxfServletAlias"; |
| public static final String DEFAULT_CXF_SERVLET_ALIAS = "/cxf"; |
| |
| private Constants() { |
| // never constructed |
| } |
| } |