@Controller public class HttpProxyController extends Object
| Constructor and Description |
|---|
HttpProxyController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<?> |
doProxy(javax.servlet.http.HttpServletRequest request,
String baseUrl,
Map<String,String> params)
Web controller mapping proxy.action to doProxy method.
|
void |
setProxyService(HttpProxyService proxyService)
The setter method of
HttpProxyService |
@RequestMapping(value="/proxy.action")
@ResponseBody
public org.springframework.http.ResponseEntity<?> doProxy(javax.servlet.http.HttpServletRequest request,
@RequestParam
String baseUrl,
@RequestParam(required=false)
Map<String,String> params)
HttpProxyServicerequest - HttpServletRequest to use in proxy (e.g. to obtain headers from)baseUrl - The base url of requestparams - Request paramspublic void setProxyService(HttpProxyService proxyService)
HttpProxyServiceproxyService - HttpProxyService to setCopyright © 2020 terrestris GmbH & Co. KG. All rights reserved.