public class RestfulJsonNotificationService extends AbstractNotificationService
RestTemplate.| Constructor and Description |
|---|
RestfulJsonNotificationService() |
| Modifier and Type | Method and Description |
|---|---|
org.jasig.portlet.notice.NotificationResponse |
fetch(javax.servlet.http.HttpServletRequest req)
Returns an empty collection and logs the event.
|
org.jasig.portlet.notice.NotificationResponse |
fetch(javax.portlet.PortletRequest req)
Provide the current collection of Notifications information for the user
represented by the
PortletRequest. |
protected org.springframework.web.client.RestTemplate |
getRestTemplate()
This Notification Service provides (and uses!) a
protected getter for it's
restTemplate so that subclasses may override the getter and provide their own
template. |
protected java.util.List<java.lang.String> |
getServiceUrls()
The list of locations is wrapped in a protected method so that subclasses can override it.
|
protected java.util.List<java.lang.String> |
getServiceUrls(javax.portlet.PortletRequest req)
Deprecated.
|
void |
init() |
void |
setPasswordEvaluator(IParameterEvaluator passwordEvaluator) |
void |
setRestTemplate(org.springframework.web.client.RestTemplate restTemplate) |
void |
setUrlParameterEvaluators(java.util.Set<IParameterEvaluator> evaluators)
Gathers beans that implement
IParameterEvaluator and prepares to leverage them in
dynamic URLs. |
void |
setUsernameEvaluator(IParameterEvaluator usernameEvaluator) |
collect, createServiceUserWindowSpecificCacheKey, getName, invoke, isValid, prepareErrorResponse, setNamepublic void setUsernameEvaluator(IParameterEvaluator usernameEvaluator)
public void setPasswordEvaluator(IParameterEvaluator passwordEvaluator)
@Autowired public void setUrlParameterEvaluators(java.util.Set<IParameterEvaluator> evaluators)
IParameterEvaluator and prepares to leverage them in
dynamic URLs.public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
@PostConstruct public void init()
public org.jasig.portlet.notice.NotificationResponse fetch(javax.portlet.PortletRequest req)
INotificationServicePortletRequest.req - The PortletRequestpublic org.jasig.portlet.notice.NotificationResponse fetch(javax.servlet.http.HttpServletRequest req)
AbstractNotificationServiceINotificationService should override this method. The log entries this method
produces are an indication that the service subclass is not ready for the post-Portlet API
world.fetch in interface INotificationServicefetch in class AbstractNotificationServicereq - The REST requestprotected org.springframework.web.client.RestTemplate getRestTemplate()
protected getter for it's
restTemplate so that subclasses may override the getter and provide their own
template.@Deprecated protected java.util.List<java.lang.String> getServiceUrls(javax.portlet.PortletRequest req)
protected java.util.List<java.lang.String> getServiceUrls()