|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javatunnel.Configuration
JavaTunnel Copyright (C) 2002 Andrés Ederra This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Field Summary | |
static int |
BUFFERSIZE
|
static int |
MODE_GNUHTTPTUNNEL
|
static java.lang.String |
MODE_GNUHTTPTUNNEL_STRING
|
static int |
MODE_HTTP
|
static java.lang.String |
MODE_HTTP_STRING
|
static int |
MODE_HTTPPROXY
|
static java.lang.String |
MODE_HTTPPROXY_STRING
|
static int |
mode_index
|
static int |
MODE_REDIRECT
|
static java.lang.String |
MODE_REDIRECT_STRING
|
static int |
MODE_SSL
|
static java.lang.String |
MODE_SSL_STRING
|
static int |
THREADPOOL_SIZE
|
Constructor Summary | |
Configuration()
|
|
Configuration(java.lang.String configFile)
|
|
Configuration(java.lang.String destinationAddress,
int destinationPort,
int localPort)
|
|
Configuration(java.lang.String destinationAddress,
int destinationPort,
java.lang.String proxyAddress,
int proxyPort,
int localPort)
|
|
Configuration(java.lang.String destinationAddress,
int destinationPort,
java.lang.String proxyAddress,
int proxyPort,
java.lang.String serverAddress,
int serverPort,
int localPort)
|
Method Summary | |
java.lang.String |
getDestinationAddress()
Returns the destinationAddress. |
int |
getDestinationPort()
Gets the destinationPort. |
int |
getLocalPort()
Gets the localPort. |
int |
getMode()
Returns the mode. |
static java.lang.String |
getModeString(int modeInt)
|
java.lang.String |
getProxyAddress()
|
int |
getProxyPort()
Returns the proxyPort. |
java.lang.String |
getServerAddress()
Returns the serverAddress. |
int |
getServerPort()
Returns the serverPort. |
boolean |
getUseProxy()
Gets the useProxy. |
boolean |
isLibMode()
|
boolean |
isManageHostsFile()
|
boolean |
isUseProxy()
Returns the useProxy. |
void |
setDestinationAddress(java.lang.String destinationAddress)
Sets the destinationAddress. |
void |
setDestinationPort(int destinationPort)
Sets the destinationPort. |
void |
setLibMode(boolean libMode)
|
void |
setLocalPort(int localPort)
Sets the localPort. |
void |
setManageHostsFile(boolean manageHostFile)
|
void |
setMode(int mode)
Sets the mode. |
void |
setMode(java.lang.String mode)
Sets the mode. |
void |
setProxyAddress(java.lang.String proxyAddress)
|
void |
setProxyPort(int proxyPort)
Sets the proxyPort. |
void |
setServerAddress(java.lang.String serverAddress)
Sets the serverAddress. |
void |
setServerPort(int serverPort)
Sets the serverPort. |
void |
setUseProxy(boolean useProxy)
Sets the useProxy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int mode_index
public static final int MODE_REDIRECT
public static final java.lang.String MODE_REDIRECT_STRING
public static final int MODE_SSL
public static final java.lang.String MODE_SSL_STRING
public static final int MODE_HTTP
public static final java.lang.String MODE_HTTP_STRING
public static final int MODE_HTTPPROXY
public static final java.lang.String MODE_HTTPPROXY_STRING
public static final int MODE_GNUHTTPTUNNEL
public static final java.lang.String MODE_GNUHTTPTUNNEL_STRING
public static int BUFFERSIZE
public static int THREADPOOL_SIZE
Constructor Detail |
public Configuration(java.lang.String configFile)
public Configuration(java.lang.String destinationAddress, int destinationPort, java.lang.String proxyAddress, int proxyPort, int localPort)
public Configuration(java.lang.String destinationAddress, int destinationPort, java.lang.String proxyAddress, int proxyPort, java.lang.String serverAddress, int serverPort, int localPort)
public Configuration(java.lang.String destinationAddress, int destinationPort, int localPort)
public Configuration()
Method Detail |
public int getDestinationPort()
public void setDestinationPort(int destinationPort)
destinationPort
- The destinationPort to setpublic int getLocalPort()
public void setLocalPort(int localPort)
localPort
- The localPort to setpublic boolean getUseProxy()
public void setUseProxy(boolean useProxy)
useProxy
- The useProxy to setpublic void setProxyAddress(java.lang.String proxyAddress)
public java.lang.String getProxyAddress()
public java.lang.String getDestinationAddress()
public int getProxyPort()
public int getServerPort()
public boolean isUseProxy()
public void setDestinationAddress(java.lang.String destinationAddress)
destinationAddress
- The destinationAddress to setpublic void setProxyPort(int proxyPort)
proxyPort
- The proxyPort to setpublic void setServerPort(int serverPort)
serverPort
- The serverPort to setpublic java.lang.String getServerAddress()
public void setServerAddress(java.lang.String serverAddress)
serverAddress
- The serverAddress to setpublic int getMode()
public void setMode(int mode)
mode
- The mode to setpublic void setMode(java.lang.String mode)
mode
- The mode to setpublic boolean isManageHostsFile()
public void setManageHostsFile(boolean manageHostFile)
manageHostFile
- The manageHostFile to set.public static java.lang.String getModeString(int modeInt)
public boolean isLibMode()
public void setLibMode(boolean libMode)
libMode
- The libMode to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |