public abstract class JsonHttpEndpoint extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
protected String |
lastLoginError |
protected String |
sessionToken |
String |
url |
Constructor and Description |
---|
JsonHttpEndpoint(String url) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected org.apache.http.impl.client.CloseableHttpClient |
getHttpClient() |
String |
getLastLoginError() |
protected com.fasterxml.jackson.databind.ObjectMapper |
getMapper() |
String |
getSessionToken() |
String |
getUrl() |
boolean |
isLoggedIn() |
void |
setLastLoginError(String lastLoginError) |
String |
toString() |
abstract boolean |
tryLogin(String email,
String password) |
public final String url
protected String sessionToken
protected String lastLoginError
public JsonHttpEndpoint(String url)
public String getSessionToken()
public String getLastLoginError()
public void setLastLoginError(String lastLoginError)
protected org.apache.http.impl.client.CloseableHttpClient getHttpClient()
protected com.fasterxml.jackson.databind.ObjectMapper getMapper()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public boolean isLoggedIn()
public String getUrl()
Copyright © 2004-2016. All Rights Reserved.