01: /*
02: * (C) Copyright 2000 - 2005 Nabh Information Systems, Inc.
03: *
04: * This program is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU General Public License
06: * as published by the Free Software Foundation; either version 2
07: * of the License, or (at your option) any later version.
08: *
09: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17: *
18: */
19: package com.nabhinc.ws.server;
20:
21: /**
22: * Defines constants used by the server side Web framework classes.
23: *
24: * @author Padmanabh Dabke
25: * (c) 2005 Nabh Information Systems, Inc. All Rights Reserved.
26: */
27: public class WebServiceServerConstants {
28:
29: /*
30: * XML tag names used in configuring Web services framework
31: */
32: public static final String WEB_SERVICE_CONFIG_TAG = "ws-config";
33: public static final String WEB_SERVICE_TAG = "web-service";
34: public static final String INTERCEPTOR_TAG = "interceptor";
35: public static final String SERVICE_DIRECTORY_TAG = "service-directory";
36: public static final String USER_MANAGER_TAG = "user-manager";
37: public static final String SERVER_CONTEXT_TAG = "server-context";
38: public static final String REQUEST_PROCESSOR_TAG = "request-processor";
39: public static final String WEB_SERVICES_TAG = "web-services";
40: public static final String BEFORE_INTERCEPTORS_TAG = "before-interceptors";
41: public static final String AFTER_INTERCEPTORS_TAG = "after-interceptors";
42: public static final String SERVICE_TAG = "service";
43: public static final String SERVICE_INTERCEPTOR_MAPPING_TAG = "service-interceptor-mapping";
44: public static final String SERVICE_INTERCEPTOR_MAPPING_CONFIG_TAG = "service-interceptor-mapping-config";
45: public static final String METHODS_TAG = "methods";
46: public static final String INTERCEPTORS_TAG = "interceptors";
47: public static final String OVERRIDE_GLOBAL_CHAIN_TAG = "override-global-chain";
48: public static final String CLASS_TAG = "class";
49: public static final String NAME_TAG = "name";
50: public static final String DISPLAY_NAME_TAG = "display-name";
51: public static final String DESCR_TAG = "description";
52: public static final String TYPE_TAG = "type";
53: public static final String MANUAL_LOAD_TAG = "manual-load";
54: public static final String CRITICAL_TAG = "critical";
55: public static final String OWNER_TAG = "owner";
56: public static final String WSDL_FILE_TAG = "wsdl-file";
57: public static final String SERVICE_INTERFACE_PROPERTY_NAME_MAPPINGS = "service-interface-property-name-mappings";
58: public static final String SERVICE_INTERFACE_PROPERTY_NAME_MAPPING = "service-interface-property-name-mapping";
59: public static final String PROPERTY_NAME_TAG = "property-name";
60: public static final String REQUIRES_SECURE_ACCESS_TAG = "requires-secure-access";
61: public static final String SERVICE_INTERFACE_CLASS_TAG = "service-interface-class";
62: public static final String XML_CONFIG_TAG = "xml-config";
63: /*
64: * Possible load status of a Web service.
65: */
66:
67: /**
68: * Indicates that the Web service has not been loaded.
69: */
70: public static final int LOAD_STATUS_UNLOADED = 0;
71:
72: /**
73: * Indicates that there was an error in initializing the
74: * Web service.
75: */
76: public static final int LOAD_STATUS_INIT_ERROR = 1;
77:
78: /**
79: * Indicates that the Web service threw <code>UnavailableException</code>
80: * during invocation.
81: */
82: public static final int LOAD_STATUS_METHOD_INVOCATION_ERROR = 2;
83:
84: /**
85: * Indicates that the Web service has been loaded successfully and
86: * servicing requests.
87: */
88: public static final int LOAD_STATUS_LOADED = 3;
89: }
|