public class AfterCommandEvent extends RequestContextAwareEvent
Event triggered after the command processing is finished, before the HTTP response is created.
request, response
source
Constructor and Description |
---|
AfterCommandEvent(Object source,
String commandName,
ResponseEntity responseEntity,
HttpServletRequest request,
HttpServletResponse response)
Constructs the event instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getCommandName() |
ResponseEntity |
getResponseEntity() |
AfterCommandEvent |
setResponseEntity(ResponseEntity responseEntity)
Sets response entity object that will be used to build HTTP response for current request.
|
getRequest, getResponse
getTimestamp
getSource, toString
public AfterCommandEvent(Object source, String commandName, ResponseEntity responseEntity, HttpServletRequest request, HttpServletResponse response)
source
- the object on which the event initially occurredcommandName
- current command nameresponseEntity
- response entity that holds data to build HTTP response for current requestrequest
- current HTTP requestresponse
- current HTTP responsepublic String getCommandName()
public ResponseEntity getResponseEntity()
public AfterCommandEvent setResponseEntity(ResponseEntity responseEntity)
responseEntity
- response entity objectCopyright © 2007 – 2019 CKSource - Frederico Knabben. All rights reserved.