Skip to content

Commit

Permalink
WELD-1989 ProbeFilter - update integration docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mkouba committed Jul 13, 2015
1 parent 2682b7a commit 35d447c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/reference/src/main/asciidoc/ri-spi.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,8 @@ Optionally, an integrator may register the following <<probe,Probe Development T

NOTE: Probe classes reside in a separate module with the following coordinates: `org.jboss.weld.probe:weld-probe-core`. This module is a dependency of a Weld Servlet integration module and it's also a part of the `weld-servlet-shaded` artifact and Weld OSGi bundle.

NOTE: Probe REST API is implemented using a servlet filter. However, not all servlet containers trigger filters when recieving a request to a path which is not mapped to any servlet (although most of them define a "default" servlet for each application). In this case, an integrator should register a "dummy" servlet (its methods will never be invoked) mapped to the URL pattern `/weld-probe/*`.

=== Migration notes

This part of the appendix documents the changes in Weld across major and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ protected void handle(BeanManagerImpl beanManager, Probe probe, HttpMethod metho
String content = IOUtils.getResourceAsString(resourceName);
if (content == null) {
resp.sendError(HttpServletResponse.SC_NOT_FOUND);
return;
}
content = content.replace("${contextPath}", req.getServletContext().getContextPath() + ProbeFilter.REST_URL_PATTERN_BASE + SLASH);
resp.getWriter().append(content);
Expand Down

0 comments on commit 35d447c

Please sign in to comment.