@Service(value="httpProxyService") public class HttpProxyService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ERR_MSG_400_COMMON |
static String |
ERR_MSG_400_NO_URL |
static String |
ERR_MSG_404 |
static String |
ERR_MSG_405 |
static String |
ERR_MSG_500 |
static String |
ERR_MSG_502 |
| Constructor and Description |
|---|
HttpProxyService() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<?> |
doProxy(javax.servlet.http.HttpServletRequest request,
String baseUrl,
Map<String,String> params) |
org.springframework.http.ResponseEntity<?> |
doProxy(javax.servlet.http.HttpServletRequest request,
String baseUrl,
Map<String,String> params,
boolean useWhitelist) |
void |
setProxyWhiteList(List<String> proxyWhiteList)
The setter for proxy whitelist
|
public static final String ERR_MSG_400_NO_URL
public static final String ERR_MSG_400_COMMON
public static final String ERR_MSG_404
public static final String ERR_MSG_405
public static final String ERR_MSG_500
public static final String ERR_MSG_502
public org.springframework.http.ResponseEntity<?> doProxy(javax.servlet.http.HttpServletRequest request,
String baseUrl,
Map<String,String> params)
request - baseUrl - params - public org.springframework.http.ResponseEntity<?> doProxy(javax.servlet.http.HttpServletRequest request,
String baseUrl,
Map<String,String> params,
boolean useWhitelist)
request - baseUrl - params - useWhitelist - Copyright © 2020 terrestris GmbH & Co. KG. All rights reserved.