rsitze 02/05/20 14:40:19
Modified: java/src/org/apache/axis/providers/java JavaProvider.java
Log:
consolidated string constants
Revision Changes Path
1.54 +6 -6
xml-axis/java/src/org/apache/axis/providers/java/JavaProvider.java
Index: JavaProvider.java
===================================================================
RCS file:
/home/cvs/xml-axis/java/src/org/apache/axis/providers/java/JavaProvider.java,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- JavaProvider.java 10 May 2002 16:06:30 -0000 1.53
+++ JavaProvider.java 20 May 2002 21:40:19 -0000 1.54
@@ -98,13 +98,12 @@
public static final String OPTION_CLASSNAME = "className";
public static final String OPTION_IS_STATIC = "isStatic";
public static final String OPTION_CLASSPATH = "classPath";
+ public static final String OPTION_ALLOWEDMETHODS = "allowedMethods";
public static final int SCOPE_REQUEST = 0;
public static final int SCOPE_SESSION = 1;
public static final int SCOPE_APPLICATION = 2;
- private String classNameOption = "className";
- private String allowedMethodsOption = "allowedMethods";
/**
* Get the service object whose method actually provides the service.
@@ -201,7 +200,8 @@
* @return an initialized service object
*/
private Object getNewServiceObject(MessageContext msgContext,
- String clsName) throws Exception {
+ String clsName) throws Exception
+ {
Object serviceObject = makeNewServiceObject(msgContext, clsName);
if (serviceObject != null &&
serviceObject instanceof ServiceLifecycle) {
@@ -259,7 +259,7 @@
if ((allowedMethods == null) || allowedMethods.equals("")) {
throw new AxisFault("Server.NoMethodConfig",
JavaUtils.getMessage("noOption00",
- allowedMethodsOption, serviceName),
+ OPTION_ALLOWEDMETHODS, serviceName),
null, null);
}
@@ -398,7 +398,7 @@
private String getAllowedMethods(Handler service)
{
- String val = (String)service.getOption(allowedMethodsOption);
+ String val = (String)service.getOption(OPTION_ALLOWEDMETHODS);
if (val == null || val.length() == 0) {
// Try the old option for backwards-compatibility
val = (String)service.getOption("methodName");
@@ -443,7 +443,7 @@
*/
protected String getServiceClassNameOptionName()
{
- return classNameOption;
+ return OPTION_CLASSNAME;
}
/**