Package de.terrestris.shoguncore.service
Class HttpProxyService
- java.lang.Object
-
- de.terrestris.shoguncore.service.HttpProxyService
-
@Service("httpProxyService") public class HttpProxyService extends ObjectSimple HTTP Proxy service (forward proxy)- Author:
- Andre Henn, terrestris GmbH & co. KG
-
-
Field Summary
Fields Modifier and Type Field Description static StringERR_MSG_400_COMMONstatic StringERR_MSG_400_NO_URLstatic StringERR_MSG_404static StringERR_MSG_405static StringERR_MSG_500static StringERR_MSG_502
-
Constructor Summary
Constructors Constructor Description HttpProxyService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)voidsetProxyWhiteList(List<String> proxyWhiteList)The setter for proxy whitelist
-
-
-
Field Detail
-
ERR_MSG_400_NO_URL
public static final String ERR_MSG_400_NO_URL
- See Also:
- Constant Field Values
-
ERR_MSG_400_COMMON
public static final String ERR_MSG_400_COMMON
- See Also:
- Constant Field Values
-
ERR_MSG_404
public static final String ERR_MSG_404
- See Also:
- Constant Field Values
-
ERR_MSG_405
public static final String ERR_MSG_405
- See Also:
- Constant Field Values
-
ERR_MSG_500
public static final String ERR_MSG_500
- See Also:
- Constant Field Values
-
ERR_MSG_502
public static final String ERR_MSG_502
- See Also:
- Constant Field Values
-
-
Method Detail
-
doProxy
public org.springframework.http.ResponseEntity<?> doProxy(javax.servlet.http.HttpServletRequest request, String baseUrl, Map<String,String> params)- Parameters:
request-baseUrl-params-- Returns:
-
doProxy
public org.springframework.http.ResponseEntity<?> doProxy(javax.servlet.http.HttpServletRequest request, String baseUrl, Map<String,String> params, boolean useWhitelist)- Parameters:
request-baseUrl-params-useWhitelist-- Returns:
-
-