01: /*
02: * @(#)ServiceIdentifier.java 1.7 01/07/27
03: *
04: * Copyright (c) 07/27/01 Sun Microsystems, Inc. All Rights Reserved.
05: */
06:
07: package com.sun.portal.util;
08:
09: public class ServiceIdentifier {
10:
11: private static boolean isGW;
12:
13: private static boolean isNP;
14:
15: private static boolean isRP;
16:
17: private ServiceIdentifier() {
18: }
19:
20: public static void createDefault(String appName) {
21: isGW = (appName.compareTo("srapGateway") == 0);
22: isNP = (appName.compareTo("srapNetletProxy") == 0);
23: isRP = (appName.compareTo("srapRewriterProxy") == 0);
24: }
25:
26: public static boolean isGateway() {
27: return isGW;
28: }
29:
30: public static boolean isRewriterProxy() {
31: return isRP;
32: }
33:
34: public static boolean isNetletProxy() {
35: return isNP;
36: }
37: }
|