Registry / web-framework / pax-web-api

pax-web-api

JSON →
library11.1.0javamavenunverified

API module for Pax Web, an OPS4J implementation of the OSGi HTTP Service and HTTP Whiteboard specifications.

<dependency> <groupId>org.ops4j.pax.web</groupId> <artifactId>pax-web-api</artifactId> <version>11.1.0</version> </dependency>
INSTALL
IMPORT
SIG · PAX-WEB-API
P
pax-web-api
web-frameworkjavav11.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WebContainer
org.ops4j.pax.web.service.WebContainer

Inject and use the WebContainer service to register servlets in an OSGi environment.

import org.ops4j.pax.web.service.WebContainer; import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceReference; // In an OSGi component: @Reference private WebContainer webContainer; public void registerServlet() { webContainer.registerServlet("/hello", new HelloServlet(), null, null); }
Debug
Known issues
breakingPax Web API requires an OSGi runtime; it cannot be used in standard Java SE applications.
fix
Deploy your application in an OSGi container (e.g., Apache Karaf, Eclipse Equinox) that includes Pax Web.
affects: *
Upgrade
Version history
11.1.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
pax-web-api — mvn dependency:get pax-web-api · libregistry