public abstract class AbstractDataClient extends Object implements DataClient
| Constructor and Description |
|---|
AbstractDataClient() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAcrValues()
Returns the set of ACR values
|
Set |
getAcrValuesSet()
Returns the set of ACR
|
String |
getData(Token token)
Send an authenticated request with the access token to retreive data
|
String |
getDataServerUri() |
String |
getName()
Returns the Name
|
String |
getRedirectUri()
Returns the RedirectUri
|
Set |
getScope()
Returns the Scopes set
|
String |
getScopes()
Build a string that contains the list of scope separated by a plus
|
String |
getTokenMethod() |
void |
handleError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String strError)
Method call if an error appear
|
boolean |
isDefault() |
void |
setAcrValuesSet(Set acrValues)
Set ACR values set
|
void |
setDataServerUri(String strDataServerUri) |
void |
setDefault(boolean _bDefault) |
void |
setName(String strName)
Sets the Name
|
void |
setRedirectUri(String strRedirectUri)
Sets the RedirectUri
|
void |
setScope(Set scope)
Sets the Scope
|
void |
setTokenMethod(String strTokenMethod) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleTokenpublic String getName()
getName in interface DataClientpublic void setName(String strName)
setName in interface DataClientstrName - The Namepublic Set getScope()
getScope in interface DataClientpublic void setScope(Set scope)
setScope in interface DataClientscope - The Scopepublic String getScopes()
getScopes in interface DataClientpublic String getRedirectUri()
getRedirectUri in interface DataClientpublic void setRedirectUri(String strRedirectUri)
setRedirectUri in interface DataClientstrRedirectUri - The RedirectUripublic Set getAcrValuesSet()
getAcrValuesSet in interface DataClientpublic void setAcrValuesSet(Set acrValues)
setAcrValuesSet in interface DataClientacrValues - The ACR values setpublic String getAcrValues()
getAcrValues in interface DataClientpublic String getDataServerUri()
getDataServerUri in interface DataClientpublic void setDataServerUri(String strDataServerUri)
setDataServerUri in interface DataClientstrDataServerUri - the DataServerUri to setpublic String getTokenMethod()
getTokenMethod in interface DataClientpublic void setTokenMethod(String strTokenMethod)
setTokenMethod in interface DataClientstrTokenMethod - the TokenMethod to setpublic String getData(Token token)
token - The tokenpublic void handleError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String strError)
DataClienthandleError in interface DataClientrequest - HttpServletRequest requestresponse - HttpServletResponse responsestrError - String strErrorpublic boolean isDefault()
isDefault in interface DataClientpublic void setDefault(boolean _bDefault)
setDefault in interface DataClient_bDefault - true if the dataclient is a default data clientCopyright © 2021 City of Paris. All rights reserved.