Skip to content

Added @WebFilter annotation for Router #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Conversation

kaisteel
Copy link
Contributor

Added WebFilter annotation on Router class to avoid so that entry in web.xml (this will work for Servlet API 3.x+) The default URL pattern is set to /rest/* which can be overwritten from web.xml file

<filter>
        <filter-name>Router</filter-name>
        <filter-class>com.metamug.mason.Router</filter-class>
</filter>    
<filter-mapping>
        <filter-name>Router</filter-name>
        <url-pattern>/rest/*</url-pattern>
</filter-mapping>

The filter-name has to be Router for it to be overwritten

@lgtm-com
Copy link

lgtm-com bot commented Dec 14, 2019

This pull request fixes 1 alert when merging d77336e into 0bf850b - view on LGTM.com

fixed alerts:

  • 1 for Spurious Javadoc @param tags

# Conflicts:
#	src/test/java/com/metamug/mason/tag/TagHandlerTest.java
@lgtm-com
Copy link

lgtm-com bot commented Dec 19, 2019

This pull request fixes 1 alert when merging efa6640 into 03f06c1 - view on LGTM.com

fixed alerts:

  • 1 for Spurious Javadoc @param tags

@d3ep4k
Copy link
Contributor

d3ep4k commented Dec 20, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants