Package com.ibm.di.plugin.proxy
Class Proxy
- java.lang.Object
-
- com.ibm.di.plugin.proxy.Proxy
-
public class Proxy extends java.lang.ObjectThis is the common Java Proxy that is responsible for reading the appropriate configuration file and listening for incoming connections.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_SERVER_PORTthis is the default port the Proxy will listen tostatic java.lang.StringLOG_ENCODINGThe key name for the log encodingprotected static java.lang.StringPREFIXthe proxy's log prefixstatic java.lang.StringPROXY_AUTH_FOLDERthe key name for the proxy's security folderstatic java.lang.StringPROXY_CONFIG_FILEthe key name for the proxy's configuration file pathstatic java.lang.StringPROXY_CUSTOM_DATAthe key name for the proxy's custom datastatic java.lang.StringPROXY_DEBUGthe key name for the proxy's debug flagstatic java.lang.StringPROXY_LOG_FILEthe key name for the proxy's log filestatic java.lang.StringPROXY_LOG_ROTATION_PATTERNThe key name for the log file rotation patternstatic java.lang.StringPROXY_PORTthe key name for the proxy's listening portstatic java.lang.StringPROXY_SYNC_CLASSthe key name for the proxy's password store class name
-
Constructor Summary
Constructors Constructor Description Proxy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()initializes theProxyclass.static voidmain(java.lang.String[] args)This is the entry point of the Java Proxy process when it is run by a plug-in other than the Domino plug-in.booleanproxyStopRequested()Check whether the Proxy is requested to stop.protected static voidreadProxyConfigurationFile()Reads the proxy configuration file given by a System Property with the namePROXY_CONFIG_FILEvoidrequestProxyStop()Request from the Proxy to stop execution.voidrunProxy()The main worker method.
-
-
-
Field Detail
-
DEFAULT_SERVER_PORT
public static final int DEFAULT_SERVER_PORT
this is the default port the Proxy will listen to- See Also:
- Constant Field Values
-
PROXY_CONFIG_FILE
public static final java.lang.String PROXY_CONFIG_FILE
the key name for the proxy's configuration file path- See Also:
- Constant Field Values
-
PROXY_AUTH_FOLDER
public static final java.lang.String PROXY_AUTH_FOLDER
the key name for the proxy's security folder- See Also:
- Constant Field Values
-
PROXY_SYNC_CLASS
public static final java.lang.String PROXY_SYNC_CLASS
the key name for the proxy's password store class name- See Also:
- Constant Field Values
-
PROXY_PORT
public static final java.lang.String PROXY_PORT
the key name for the proxy's listening port- See Also:
- Constant Field Values
-
PROXY_LOG_FILE
public static final java.lang.String PROXY_LOG_FILE
the key name for the proxy's log file- See Also:
- Constant Field Values
-
PROXY_LOG_ROTATION_PATTERN
public static final java.lang.String PROXY_LOG_ROTATION_PATTERN
The key name for the log file rotation pattern- See Also:
- Constant Field Values
-
LOG_ENCODING
public static final java.lang.String LOG_ENCODING
The key name for the log encoding- See Also:
- Constant Field Values
-
PROXY_DEBUG
public static final java.lang.String PROXY_DEBUG
the key name for the proxy's debug flag- See Also:
- Constant Field Values
-
PROXY_CUSTOM_DATA
public static final java.lang.String PROXY_CUSTOM_DATA
the key name for the proxy's custom data- See Also:
- Constant Field Values
-
PREFIX
protected static final java.lang.String PREFIX
the proxy's log prefix- See Also:
- Constant Field Values
-
-
Method Detail
-
requestProxyStop
public void requestProxyStop()
Request from the Proxy to stop execution. This method will block to make sure a request does not come before the Proxy is completely initialized.
-
proxyStopRequested
public boolean proxyStopRequested()
Check whether the Proxy is requested to stop.- Returns:
- true if the proxy was asked to stop, false otherwise.
-
main
public static void main(java.lang.String[] args) throws java.lang.ExceptionThis is the entry point of the Java Proxy process when it is run by a plug-in other than the Domino plug-in.- Parameters:
args- no specific arguments are checked or expected.- Throws:
java.lang.Exception- if an error occurs.
-
readProxyConfigurationFile
protected static void readProxyConfigurationFile() throws java.io.FileNotFoundException, java.io.IOExceptionReads the proxy configuration file given by a System Property with the namePROXY_CONFIG_FILE- Throws:
java.io.FileNotFoundException- if the file could not be found.java.io.IOException- if a read error occurs.java.lang.IllegalArgumentException- if the required System Property is missing or malformed.
-
init
public void init() throws java.lang.Exceptioninitializes theProxyclass.- Throws:
java.lang.Exception- if an error occurs.
-
runProxy
public void runProxy() throws java.lang.ExceptionThe main worker method. This method expects that theinit()method was called previously and it has succeeded.- Throws:
java.lang.Exception- if an error occurs.
-
-