|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.pax.web.service.spi.model.ServerModel
public class ServerModel
Holds web elements in a global context accross all services (all bundles usng the Http Service).
| Constructor Summary | |
|---|---|
ServerModel()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addFilterModel(FilterModel model)
Registers a filter model. |
void |
addServletModel(ServletModel model)
Registers a servlet model. |
void |
associateHttpContext(org.osgi.service.http.HttpContext httpContext,
org.osgi.framework.Bundle bundle,
boolean allowReAsssociation)
Associates a http context with a bundle if the http service is not already associated to another bundle. |
void |
deassociateHttpContexts(org.osgi.framework.Bundle bundle)
Deassociate all http context assiciated to the provided bundle. |
ContextModel |
matchPathToContext(java.lang.String path)
|
void |
removeFilterModel(FilterModel model)
Unregister a filter model. |
void |
removeServletModel(ServletModel model)
Unregisters a servlet model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerModel()
| Method Detail |
|---|
public void addServletModel(ServletModel model)
throws org.osgi.service.http.NamespaceException,
javax.servlet.ServletException
model - servlet model to register
javax.servlet.ServletException - - If servlet is already registered
org.osgi.service.http.NamespaceException - - If servlet alias is already registeredpublic void removeServletModel(ServletModel model)
model - servlet model to unregisterpublic void addFilterModel(FilterModel model)
model - filter model to registerpublic void removeFilterModel(FilterModel model)
model - filter model to unregister
public void associateHttpContext(org.osgi.service.http.HttpContext httpContext,
org.osgi.framework.Bundle bundle,
boolean allowReAsssociation)
httpContext - http context to be assicated to the bundlebundle - bundle to be assiciated with the htp serviceallowReAsssociation - if it should allow a context to be reassiciated to a bundle
java.lang.IllegalStateException - - If htp context is already associated to another bundle.public void deassociateHttpContexts(org.osgi.framework.Bundle bundle)
bundle - bundle to be deassociated from http contextspublic ContextModel matchPathToContext(java.lang.String path)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||