public class EdalHttpServer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EDAL_PATH_SEPARATOR |
| Modifier | Constructor and Description |
|---|---|
protected |
EdalHttpServer(EdalConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkIfDomainIsAliasForLocalhost(java.net.InetAddress localhost,
java.lang.String domain) |
static boolean |
checkIfDomainIsAliasForLocalhost(java.lang.String localhost,
java.lang.String domain) |
static boolean |
checkIfLocalhostHasSubDomain(java.net.InetAddress localhost,
java.lang.String domain) |
static boolean |
checkIfLocalhostHasSubDomain(java.lang.String localhost,
java.lang.String domain) |
static boolean |
checkIfLocalhostIsInDomain(java.net.InetAddress localhost,
java.lang.String domain) |
static boolean |
checkIfLocalhostIsInDomain(java.lang.String localhost,
java.lang.String domain) |
static java.net.URL |
generateMethodURL(java.lang.String ticket,
int reviewerCode,
EdalHttpFunctions method)
Generate an
URL to a ticket for the given method. |
static java.net.URL |
generateReviewerURL(java.net.URL entityURL,
int reviewersCode)
Generate an
URL to access a
PrimaryDataEntity
as reviewer over a temporal landing page. |
static java.net.URL |
getHttpDownloadURL()
Get the
URL for the HTTP downloads. |
static java.net.URL |
getServerURL()
Get the
URL of the HTTP server. |
protected void |
start()
Start the eDAL
Server. |
protected void |
stop()
Stop the eDAL
Server. |
public static final java.lang.String EDAL_PATH_SEPARATOR
protected EdalHttpServer(EdalConfiguration configuration)
public static boolean checkIfLocalhostIsInDomain(java.net.InetAddress localhost,
java.lang.String domain)
public static boolean checkIfDomainIsAliasForLocalhost(java.net.InetAddress localhost,
java.lang.String domain)
throws java.net.UnknownHostException
java.net.UnknownHostExceptionpublic static boolean checkIfLocalhostHasSubDomain(java.net.InetAddress localhost,
java.lang.String domain)
throws java.net.UnknownHostException
java.net.UnknownHostExceptionpublic static boolean checkIfLocalhostIsInDomain(java.lang.String localhost,
java.lang.String domain)
public static boolean checkIfDomainIsAliasForLocalhost(java.lang.String localhost,
java.lang.String domain)
throws java.net.UnknownHostException
java.net.UnknownHostExceptionpublic static boolean checkIfLocalhostHasSubDomain(java.lang.String localhost,
java.lang.String domain)
throws java.net.UnknownHostException
java.net.UnknownHostExceptionprotected void start()
Server.protected void stop()
Server.public static java.net.URL getServerURL()
throws EdalException
URL of the HTTP server.URL of the HTTP server.EdalException - if no HTTP server was started.public static java.net.URL getHttpDownloadURL()
throws EdalException
URL for the HTTP downloads.URL of the HTTP server.EdalException - if no HTTP server was started.public static java.net.URL generateMethodURL(java.lang.String ticket,
int reviewerCode,
EdalHttpFunctions method)
throws EdalException
URL to a ticket for the given method.ticket - the ticket to the method.reviewerCode - the code to identify the reviewer.method - the method for this URL.PublicReference
.EdalException - if unable to generate an URL.public static java.net.URL generateReviewerURL(java.net.URL entityURL,
int reviewersCode)
throws EdalException
URL to access a
PrimaryDataEntity
as reviewer over a temporal landing page.entityURL - the normal URL to this
PrimaryDataEntity
.reviewersCode - the code to identify the reviewerURL to access the landing page for the reviewer.EdalException - if unable to generate reviewer URL