@RestController
public class PropertyController
extends org.openecomp.portalsdk.core.controller.RestrictedBaseController
Constructor and Description |
---|
PropertyController() |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<String> |
getProperty(String name,
String defaultvalue,
javax.servlet.http.HttpServletRequest request)
Gets the property.
|
String |
getViewName() |
void |
setViewName(String _viewName) |
org.springframework.web.servlet.ModelAndView |
welcome(javax.servlet.http.HttpServletRequest request)
Welcome.
|
getExceptionView, isAccessible, isRESTfulCall, setExceptionView
@RequestMapping(value="/propertyhome", method=GET) public org.springframework.web.servlet.ModelAndView welcome(javax.servlet.http.HttpServletRequest request)
request
- the requestpublic String getViewName()
getViewName
in class org.openecomp.portalsdk.core.controller.RestrictedBaseController
public void setViewName(String _viewName)
setViewName
in class org.openecomp.portalsdk.core.controller.RestrictedBaseController
@RequestMapping(value="/get_property/{name}/{defaultvalue}", method=GET) public org.springframework.http.ResponseEntity<String> getProperty(@PathVariable(value="name") String name, @PathVariable(value="defaultvalue") String defaultvalue, javax.servlet.http.HttpServletRequest request) throws Exception
name
- the namedefaultvalue
- the defaultvaluerequest
- the requestException
- the exceptionCopyright © 2017. All rights reserved.