public class ServerUtility extends Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
ServerUtility() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
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)
Copyright © 2013 DuraSpace. All Rights Reserved.