This project has retired. For details please refer to its Attic page.
SessionParameter xref

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   * http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.chemistry.opencmis.commons;
20  
21  /**
22   * Collection of session parameters.
23   */
24  public final class SessionParameter {
25  
26      // utility class
27      private SessionParameter() {
28      }
29  
30      // ---- general parameter ----
31      public static final String USER = "org.apache.chemistry.opencmis.user";
32      public static final String PASSWORD = "org.apache.chemistry.opencmis.password";
33  
34      // --- binding parameter ----
35      /** Predefined binding types (see {@code BindingType}) */
36      public static final String BINDING_TYPE = "org.apache.chemistry.opencmis.binding.spi.type";
37  
38      /** Class name of the binding class. */
39      public static final String BINDING_SPI_CLASS = "org.apache.chemistry.opencmis.binding.spi.classname";
40  
41      /** URL of the AtomPub service document. */
42      public static final String ATOMPUB_URL = "org.apache.chemistry.opencmis.binding.atompub.url";
43  
44      /** WSDL URLs for Web Services. */
45      public static final String WEBSERVICES_REPOSITORY_SERVICE = "org.apache.chemistry.opencmis.binding.webservices.RepositoryService";
46      public static final String WEBSERVICES_NAVIGATION_SERVICE = "org.apache.chemistry.opencmis.binding.webservices.NavigationService";
47      public static final String WEBSERVICES_OBJECT_SERVICE = "org.apache.chemistry.opencmis.binding.webservices.ObjectService";
48      public static final String WEBSERVICES_VERSIONING_SERVICE = "org.apache.chemistry.opencmis.binding.webservices.VersioningService";
49      public static final String WEBSERVICES_DISCOVERY_SERVICE = "org.apache.chemistry.opencmis.binding.webservices.DiscoveryService";
50      public static final String WEBSERVICES_RELATIONSHIP_SERVICE = "org.apache.chemistry.opencmis.binding.webservices.RelationshipService";
51      public static final String WEBSERVICES_MULTIFILING_SERVICE = "org.apache.chemistry.opencmis.binding.webservices.MultiFilingService";
52      public static final String WEBSERVICES_POLICY_SERVICE = "org.apache.chemistry.opencmis.binding.webservices.PolicyService";
53      public static final String WEBSERVICES_ACL_SERVICE = "org.apache.chemistry.opencmis.binding.webservices.ACLService";
54      public static final String WEBSERVICES_MEMORY_THRESHOLD = "org.apache.chemistry.opencmis.binding.webservices.memoryThreshold";
55  
56      public static final String WEBSERVICES_PORT_PROVIDER_CLASS = "org.apache.chemistry.opencmis.binding.webservices.portprovider.classname";
57  
58      /** URL of the Browser Binding entry point. */
59      public static final String BROWSER_URL = "org.apache.chemistry.opencmis.binding.browser.url";
60  
61      /** Factory class name for the local binding. */
62      public static final String LOCAL_FACTORY = "org.apache.chemistry.opencmis.binding.local.classname";
63  
64      /** Class name of the authentication provider. */
65      public static final String AUTHENTICATION_PROVIDER_CLASS = "org.apache.chemistry.opencmis.binding.auth.classname";
66  
67      /**
68       * Toggle for HTTP basic authentication. Evaluated by the standard
69       * authentication provider.
70       */
71      public static final String AUTH_HTTP_BASIC = "org.apache.chemistry.opencmis.binding.auth.http.basic";
72  
73      /**
74       * Toggle for WS-Security UsernameToken authentication. Evaluated by the
75       * standard authentication provider.
76       */
77      public static final String AUTH_SOAP_USERNAMETOKEN = "org.apache.chemistry.opencmis.binding.auth.soap.usernametoken";
78  
79      // --- connection ---
80  
81      public static final String COMPRESSION = "org.apache.chemistry.opencmis.binding.compression";
82      public static final String CLIENT_COMPRESSION = "org.apache.chemistry.opencmis.binding.clientcompression";
83  
84      public static final String COOKIES = "org.apache.chemistry.opencmis.binding.cookies";
85  
86      public static final String CONNECT_TIMEOUT = "org.apache.chemistry.opencmis.binding.connecttimeout";
87      public static final String READ_TIMEOUT = "org.apache.chemistry.opencmis.binding.readtimeout";
88  
89      public static final String PROXY_USER = "org.apache.chemistry.opencmis.binding.proxyuser";
90      public static final String PROXY_PASSWORD = "org.apache.chemistry.opencmis.binding.proxypassword";
91  
92      // --- cache ---
93  
94      public static final String CACHE_SIZE_OBJECTS = "org.apache.chemistry.opencmis.cache.objects.size";
95      public static final String CACHE_TTL_OBJECTS = "org.apache.chemistry.opencmis.cache.objects.ttl";
96      public static final String CACHE_SIZE_PATHTOID = "org.apache.chemistry.opencmis.cache.pathtoid.size";
97      public static final String CACHE_TTL_PATHTOID = "org.apache.chemistry.opencmis.cache.pathtoid.ttl";
98      public static final String CACHE_PATH_OMIT = "org.apache.chemistry.opencmis.cache.path.omit";
99  
100     public static final String CACHE_SIZE_REPOSITORIES = "org.apache.chemistry.opencmis.binding.cache.repositories.size";
101     public static final String CACHE_SIZE_TYPES = "org.apache.chemistry.opencmis.binding.cache.types.size";
102     public static final String CACHE_SIZE_LINKS = "org.apache.chemistry.opencmis.binding.cache.links.size";
103 
104     // --- session control ---
105 
106     public static final String LOCALE_ISO639_LANGUAGE = "org.apache.chemistry.opencmis.locale.iso639";
107     public static final String LOCALE_ISO3166_COUNTRY = "org.apache.chemistry.opencmis.locale.iso3166";
108     public static final String LOCALE_VARIANT = "org.apache.chemistry.opencmis.locale.variant";
109 
110     public static final String OBJECT_FACTORY_CLASS = "org.apache.chemistry.opencmis.objectfactory.classname";
111     public static final String CACHE_CLASS = "org.apache.chemistry.opencmis.cache.classname";
112 
113     public static final String REPOSITORY_ID = "org.apache.chemistry.opencmis.session.repository.id";
114 }