01: package com.sun.portal.rproxy.server;
02:
03: import java.util.List;
04:
05: import com.sun.portal.rproxy.configservlet.client.GatewayProfile;
06:
07: class DSAMEGatewayContext implements GatewayContext {
08:
09: private static final int DEFAULT_HTTP_PORT = 80;
10:
11: private static final int DEFAULT_HTTPS_PORT = 443;
12:
13: private static final int HTTPPROXY_DEFAULT_PORT = 10443;
14:
15: public boolean isEProxyEnabled() {
16: return GatewayProfile.getBoolean("EProxyEnable", true);
17: }
18:
19: public boolean isPProxyEnabled() {
20: return GatewayProfile.getBoolean("PProxyEnable", false);
21: }
22:
23: public boolean isHttpEnabled() {
24: return GatewayProfile.getBoolean("EProxyEnableHTTP", false);
25: }
26:
27: public boolean isHttpsEnabled() {
28: return GatewayProfile.getBoolean("EProxyEnableHTTPS", true);
29: }
30:
31: public int getHttpPort() {
32: return GatewayProfile.getInt("EProxyHTTPPort",
33: DEFAULT_HTTP_PORT);
34: }
35:
36: public int getHttpsPort() {
37: return GatewayProfile.getInt("EProxyHTTPSPort",
38: DEFAULT_HTTPS_PORT);
39: }
40:
41: public int getConnectionQLength() {
42: return GatewayProfile.getInt("EProxyConnectionQueue", 50);
43: }
44:
45: public int getHttpProxyPort() {
46: return GatewayProfile.getInt("HTTPProxyPort",
47: HTTPPROXY_DEFAULT_PORT);
48: }
49:
50: public List getDomainsAndSubDomainsList() {
51: return GatewayProfile.getStringList("DomainsAndSubdomains");
52: }
53:
54: public String getDefaultDomainAndSubDomain() {
55: return GatewayProfile.getString("DefaultDomainAndSubdomains",
56: "").toLowerCase();
57: }
58:
59: public boolean isTranslateAll() {
60: return GatewayProfile.getBoolean("TranslateAll", false);
61: }
62:
63: public boolean isPACFileEnabled() {
64: return GatewayProfile.getBoolean("PACFileEnabled", false);
65: }
66:
67: public String getPACFileLocation() {
68: return GatewayProfile.getString("PACFileLocation", "");
69: }
70: }
|