1 /*
2 * ========================================================================
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one or more
5 * contributor license agreements. See the NOTICE file distributed with
6 * this work for additional information regarding copyright ownership.
7 * The ASF licenses this file to You under the Apache License, Version 2.0
8 * (the "License"); you may not use this file except in compliance with
9 * the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 * ========================================================================
20 */
21 package org.apache.cactus;
22
23 /**
24 * Constants that define HTTP parameters required for defining a service that
25 * is performed by the <code>ServletTestRedirector</code> servlet.
26 *
27 * @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
28 *
29 * @version $Id$
30 */
31 public class ServiceDefinition
32 {
33 /**
34 * Name of the parameter in the HTTP request that represents the name of the
35 * Test class to call. The name is voluntarily long so that it will not
36 * clash with a user-defined parameter.
37 */
38 public static final String CLASS_NAME_PARAM =
39 "Cactus_TestClass";
40
41 /**
42 * Name of the parameter in the HTTP request that represents the name of the
43 * Test method to call. The name is voluntarily long so that it will not
44 * clash with a user-defined parameter.
45 */
46 public static final String METHOD_NAME_PARAM =
47 "Cactus_TestMethod";
48
49 /**
50 * Name of the parameter in the HTTP request that specify if a session
51 * should be automatically created for the user or not.
52 */
53 public static final String AUTOSESSION_NAME_PARAM =
54 "Cactus_AutomaticSession";
55
56 /**
57 * Name of the parameter in the HTTP request that specify the service asked
58 * to the Redirector Servlet. It can be either to ask the Redirector Servlet
59 * to call the test method or to ask the Redirector Servlet to return the
60 * result of the last test.
61 *
62 * @see ServiceEnumeration
63 */
64 public static final String SERVICE_NAME_PARAM =
65 "Cactus_Service";
66
67 }