Thursday, November 5, 2015

Customizing the DynamoHttpServletRequest and DynamoHttpServletResponse

There would be cases where we need to customize DynamoHttpServletRequest and DynamoHttpServletResponse classes.
For example if you would like to override any of it's methods or add new methods.

ATG did not exposed them as components but still allows it to customize it.

Create below component and override the requestClass and responseClass properties to provide the customized request and response classes.
/atg/dynamo/servlet/dafpipeline/DynamoHandler.properties
requestClass=com.company.MyRequest
responseClass=com.company.MyResponse




1 comment:

  1. HI Shaik, thanks for this blog. I wanted to modify the cookies, set from the response. since if I modify here it will be one place where I can modify. do you have any atg documentation regarding this ? like what are the methods we can override ?

    ReplyDelete