public class AppointmentBookRestClient extends HttpRequestHelper
HttpRequestHelper.Response| Constructor and Description |
|---|
AppointmentBookRestClient(String hostName,
int port)
Creates a client to the appointment book REST service running on the given host and port
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequestHelper.Response |
addKeyValuePair(String key,
String value) |
HttpRequestHelper.Response |
createAppointment(String owner,
String description,
String beginTime,
String endTime) |
HttpRequestHelper.Response |
getAllKeysAndValues()
Returns all keys and values from the server
|
HttpRequestHelper.Response |
getValues(String key)
Returns all values for the given key
|
HttpRequestHelper.Response |
prettyPrintAppointmentBook(String owner) |
HttpRequestHelper.Response |
removeAllMappings() |
public AppointmentBookRestClient(String hostName, int port)
hostName - The name of the hostport - The portpublic HttpRequestHelper.Response getAllKeysAndValues() throws IOException
IOExceptionpublic HttpRequestHelper.Response getValues(String key) throws IOException
IOExceptionpublic HttpRequestHelper.Response addKeyValuePair(String key, String value) throws IOException
IOExceptionpublic HttpRequestHelper.Response removeAllMappings() throws IOException
IOExceptionpublic HttpRequestHelper.Response prettyPrintAppointmentBook(String owner) throws IOException
IOExceptionpublic HttpRequestHelper.Response createAppointment(String owner, String description, String beginTime, String endTime) throws IOException
IOExceptionCopyright © 2016 Portland State University. All rights reserved.