|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.soap.util.RemoteUtilities
public class RemoteUtilities
This class provides utility methods to allow the Soap Server to read and write a contact file. Uses the adam user directory (if this has been pushed into the Java properties), or ~/.soap directory if this is undefined.
Method Summary | |
---|---|
static File |
getConfigDirectory()
The name of the directory used for storing configuration information. |
static File |
getConfigFile(String name)
Construct the proper name of a file stored in the configuration directory. |
static Object[] |
readContactFile(String appName)
Parse the contact file returning its contents as an Object array. |
static String |
writeContactFile(int port,
String appName)
Write contact details to a file only readable by the owner process and privileged local users. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String writeContactFile(int port, String appName)
These details are used to authenticate any requests.
The file contains the simple line:
hostname port_number cookieThe cookie is generated by this method and returned as its result.
port
- the port number being used by a server process that
is listening for connections.
public static Object[] readContactFile(String appName)
public static File getConfigDirectory()
public static File getConfigFile(String name)
name
- the name of the file to be stored/located in the
the configuration directory.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |