public class ServerModel extends Object
| Constructor and Description |
|---|
ServerModel()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addContainerInitializerModel(ContainerInitializerModel model) |
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.
|
org.osgi.service.http.HttpContext |
findDefaultHttpContextForBundle(org.osgi.framework.Bundle bundle) |
ContextModel |
matchPathToContext(String path) |
void |
removeContainerInitializerModel(ContainerInitializerModel model) |
void |
removeFilterModel(FilterModel model)
Unregister a filter model.
|
void |
removeServletModel(ServletModel model)
Unregisters a servlet model.
|
public void addServletModel(ServletModel model) throws org.osgi.service.http.NamespaceException, javax.servlet.ServletException
model - servlet model to registerjavax.servlet.ServletException - - If servlet is already registeredorg.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 unregisterpublic void addContainerInitializerModel(ContainerInitializerModel model)
public void removeContainerInitializerModel(ContainerInitializerModel model)
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 bundleIllegalStateException - - If htp context is already associated to another bundle.public org.osgi.service.http.HttpContext findDefaultHttpContextForBundle(org.osgi.framework.Bundle bundle)
public void deassociateHttpContexts(org.osgi.framework.Bundle bundle)
bundle - bundle to be deassociated from http contextspublic ContextModel matchPathToContext(String path)
Copyright © 2006–2015 OPS4J - Open Participation Software for Java. All rights reserved.