Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Emerson Xia
How to access the custom filter when using the Virtual Host URL to request
March 7, 2013 1:37 AM
Answer

Emerson Xia

Rank: New Member

Posts: 2

Join Date: March 7, 2013

Recent Posts

1. I have added a filter( BrowserFilter ) to check the browser the requester use
2. Set the Virtual-Host( moblie.local.com) and friendly URL(/home)
3. Use the virtual host address to request server(like: moblie.local.com:8080, and I had added the break points in "BrowserFilter.java")
4. The request had forward to the Virtual-Host address in VirtualHostFilter.java and did not access my custom filter.
I wonder if I can make the request to access my own filter first before "VirtualHostFilter", or other solutions can make the custom filter be called first.
I hope I have express myself clearly. thanks.