Excerpt | ||
---|---|---|
| ||
Examples of how to use Whiteboard Extender |
Whiteboard Extender includes a set of examples that demonstrates its usage.
...
- Pax Web version >= 0.3.1
- Whiteboard Extender version >= 0.3.0
- Whiteboard example
- (optional) Pax Logging — if you want to see also the log output
Alternatively you can easy do the deployment using Pax Runner:
Code Block |
---|
pax-run scan-file:jar:mvn:org.ops4j.pax.web-extender.samples/provision!/sample-whiteboard.bundles
|
...
- http://localhost:8080/whiteboard — to see a simple servlet output
- http://localhost:8080/ — to see a simple servlet output mapped to root
- http://localhost:8080/whiteboardresources/ops4j.png – to get a logo registered by publishing a resource
- http://localhost:8080/forbidden/ — to try to access a security protected servlet
- http://localhost:8080/whiteboard/filtered — to access the whiteboard filter (see above) but through a filter
- on any request you can take a look in the java console to see a request filter in action
Content
Page Tree | ||
---|---|---|
|