public class WebUtils
extends java.lang.Object
Constructor and Description |
---|
WebUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
apiKey()
Provides the API key to be used to access the Transitime API by
Transitime web pages.
|
static javax.ws.rs.WebApplicationException |
badRequestException(int response,
java.lang.String s)
Convenience method for when need to throw a special HTTP response
exception, such as 429 which means Too Many Requests.
|
static javax.ws.rs.WebApplicationException |
badRequestException(java.lang.String s)
Convenience method for when need to throw a BAD_REQUEST exception
response.
|
public static java.lang.String apiKey()
public static javax.ws.rs.WebApplicationException badRequestException(java.lang.String s)
s
- Message to be provided as part of the response.public static javax.ws.rs.WebApplicationException badRequestException(int response, java.lang.String s)
response
- s
-