@Component public class RestHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHORIZATION_ADMIN |
static String |
AUTHORIZATION_BUSINESSADMIN |
static String |
AUTHORIZATION_TEAMLEAD_1 |
static String |
AUTHORIZATION_USER_1_1 |
static String |
AUTHORIZATION_USER_1_2 |
static String |
AUTHORIZATION_USER_2_1 |
static String |
AUTHORIZATION_USER_B_1 |
static org.springframework.web.client.RestTemplate |
TEMPLATE |
| Constructor and Description |
|---|
RestHelper(org.springframework.core.env.Environment environment) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.HttpEntity<String> |
defaultRequest() |
org.springframework.http.HttpHeaders |
getHeadersAdmin() |
org.springframework.http.HttpHeaders |
getHeadersBusinessAdmin() |
org.springframework.http.HttpHeaders |
getHeadersTeamlead_1() |
org.springframework.http.HttpHeaders |
getHeadersUser_1_1() |
org.springframework.http.HttpHeaders |
getHeadersUser_1_2() |
org.springframework.http.HttpHeaders |
getHeadersUser_2_1() |
org.springframework.http.HttpHeaders |
getHeadersUser_b_1() |
String |
toUrl(String relativeUrl,
Object... uriVariables) |
public static final String AUTHORIZATION_TEAMLEAD_1
public static final String AUTHORIZATION_ADMIN
public static final String AUTHORIZATION_BUSINESSADMIN
public static final String AUTHORIZATION_USER_1_1
public static final String AUTHORIZATION_USER_1_2
public static final String AUTHORIZATION_USER_2_1
public static final String AUTHORIZATION_USER_B_1
public static final org.springframework.web.client.RestTemplate TEMPLATE
@Autowired public RestHelper(org.springframework.core.env.Environment environment)
public org.springframework.http.HttpEntity<String> defaultRequest()
public org.springframework.http.HttpHeaders getHeadersTeamlead_1()
public org.springframework.http.HttpHeaders getHeadersAdmin()
public org.springframework.http.HttpHeaders getHeadersBusinessAdmin()
public org.springframework.http.HttpHeaders getHeadersUser_1_2()
public org.springframework.http.HttpHeaders getHeadersUser_1_1()
public org.springframework.http.HttpHeaders getHeadersUser_2_1()
public org.springframework.http.HttpHeaders getHeadersUser_b_1()
Copyright © 2020. All rights reserved.