Class ServiceDescription
java.lang.Object
uk.ac.manchester.spinnaker.alloc.web.ServiceDescription
public class ServiceDescription extends Object
The description of the overall service.
- Author:
- Donal Fellows
-
Constructor Summary
Constructors Constructor Description ServiceDescription()
Create an instance. -
Method Summary
Modifier and Type Method Description String
getCsrfHeader()
String
getCsrfToken()
URI
getJobsRef()
URI
getMachinesRef()
Version
getVersion()
-
Constructor Details
-
ServiceDescription
public ServiceDescription()Create an instance.
-
-
Method Details
-
getVersion
- Returns:
- The service version
-
getJobsRef
- Returns:
- Where to work with jobs
-
getMachinesRef
- Returns:
- Where to work with machines
-
getCsrfHeader
- Returns:
- the name of the HTTP header to pass the CSRF token in
-
getCsrfToken
- Returns:
- the CSRF token
-