|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.data.util.CommandHelpers
Some helper methods useful when writing an object which is a subclass of
the CommandBase
object.
Field Summary | |
static int |
DEFAULT_INSECURE_PORT
the default port for insecure servers |
static int |
DEFAULT_SECURE_PORT
the default port for secure servers |
Method Summary | |
static void |
addMappingsOptions(org.apache.commons.cli.Options opts)
|
static void |
addNetworkOptions(org.apache.commons.cli.Options opts)
|
static void |
handleRemoteException(java.rmi.RemoteException e,
java.net.URL endpoint)
Handle the various remote exception cases that we can return meaningful error messages for. |
static java.net.URL |
makeEndpoint(org.apache.commons.cli.CommandLine line,
boolean isSecure,
java.lang.String servicePath)
Make an enpoint, given a set of command line options |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEFAULT_SECURE_PORT
public static final int DEFAULT_INSECURE_PORT
Method Detail |
public static void addNetworkOptions(org.apache.commons.cli.Options opts)
public static void addMappingsOptions(org.apache.commons.cli.Options opts)
public static java.net.URL makeEndpoint(org.apache.commons.cli.CommandLine line, boolean isSecure, java.lang.String servicePath) throws java.net.MalformedURLException, java.lang.NumberFormatException, CommandLineException
line
- isSecure
- servicePath
-
java.net.MalformedURLException
java.lang.NumberFormatException
CommandLineException
public static void handleRemoteException(java.rmi.RemoteException e, java.net.URL endpoint) throws DataException
e
- the exceptionendpoint
- the endpoint we
DataException
- which gives better error messages.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |