@Repository public class GenericRestLookupDaoImpl extends Object implements GenericRestLookupDao
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
GenericRestLookupDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getStuff(String uri,
Map<String,String> attributes)
Gets information not using authorization
|
Object |
getStuffWithAuth(String uri,
String username,
String password,
org.springframework.http.HttpMethod method,
Map<String,String> attributes)
Gets information using basic auth
|
public Object getStuff(String uri, Map<String,String> attributes)
GenericRestLookupDaogetStuff in interface GenericRestLookupDaouri - the URL to get the dataattributes - a key/val map of attributes to utilize in substitution in the URI {var} variablespublic Object getStuffWithAuth(String uri, String username, String password, org.springframework.http.HttpMethod method, Map<String,String> attributes)
GenericRestLookupDaogetStuffWithAuth in interface GenericRestLookupDaouri - the URL to get the datausername - The username of the authorized userpassword - the password of the authorized usermethod - the method (POST/GET/etc...)attributes - a key/val map of attributes to utilize in substitution in the URI {var} variablesCopyright © 2015. All rights reserved.