|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.utilities.ServerUtility
public class ServerUtility
| Field Summary | |
|---|---|
static String |
FEDORA_REDIRECT_PORT
|
static String |
FEDORA_SERVER_CONTEXT
|
static String |
FEDORA_SERVER_HOST
|
static String |
FEDORA_SERVER_PORT
|
static String |
HTTP
|
static String |
HTTPS
|
| Constructor Summary | |
|---|---|
ServerUtility()
|
|
| Method Summary | |
|---|---|
static String |
getBaseURL(String protocol)
Get the baseURL of the Fedora server from the host and port configured. |
static boolean |
isURLFedoraServer(String url)
Tell whether the given URL appears to be referring to somewhere within the Fedora webapp. |
static void |
main(String[] args)
Command-line entry point to reload policies. |
static InputStream |
modifyDatastreamControlGroup(String protocol,
String user,
String pass,
String pidspec,
String datastreamspec,
String controlGroup,
boolean addXMLHeader,
boolean reformat,
boolean setMIMETypeCharset)
|
static boolean |
pingServer(String protocol,
String user,
String pass)
Tell whether the server is running by pinging it as a client. |
static void |
reloadPolicies(String protocol,
String user,
String pass)
Signals for the server to reload its policies. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String HTTP
public static final String HTTPS
public static final String FEDORA_SERVER_HOST
public static final String FEDORA_SERVER_PORT
public static final String FEDORA_SERVER_CONTEXT
public static final String FEDORA_REDIRECT_PORT
| Constructor Detail |
|---|
public ServerUtility()
| Method Detail |
|---|
public static boolean pingServer(String protocol,
String user,
String pass)
public static String getBaseURL(String protocol)
public static void reloadPolicies(String protocol,
String user,
String pass)
throws IOException
IOExceptionpublic static boolean isURLFedoraServer(String url)
public static InputStream modifyDatastreamControlGroup(String protocol,
String user,
String pass,
String pidspec,
String datastreamspec,
String controlGroup,
boolean addXMLHeader,
boolean reformat,
boolean setMIMETypeCharset)
throws IOException
IOExceptionpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||