META-INF.web-fragment.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moskito-inspect-embedded Show documentation
Show all versions of moskito-inspect-embedded Show documentation
This project contains dependencies and configuration (web-fragment) needed to enable moskito-inspect in embedded mode. To use it simply add it as dependency.
<web-fragment metadata-complete="true" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd"> <name>MoSKitoInspect</name> <!-- Adding filter to moskito ui which redirects requests to /mui/* to moskito user interface --> <filter> <filter-name>MoskitoUIFilter</filter-name> <filter-class>net.anotheria.moskito.webui.MoskitoUIFilter</filter-class> <init-param> <param-name>path</param-name> <param-value>/moskito-inspect/</param-value> </init-param> </filter> <filter-mapping> <filter-name>MoskitoUIFilter</filter-name> <url-pattern>/moskito-inspect/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>MoskitoUIFilter</filter-name> <url-pattern>/moskito-inspect/</url-pattern> </filter-mapping> <ordering> <before> <others/> </before> </ordering> </web-fragment>