Package org.nuxeo.ecm.webengine.app
Class WebEngineModule
- java.lang.Object
-
- javax.ws.rs.core.Application
-
- org.nuxeo.ecm.webengine.app.WebEngineModule
-
- All Implemented Interfaces:
ApplicationFactory
- Direct Known Subclasses:
APIModule,AutomationModule,JAXRSRemotingApplication,JAXRSTemplatesApplication,SCIMModule,WOPIModule
public class WebEngineModule extends javax.ws.rs.core.Application implements ApplicationFactory
- Author:
- Bogdan Stefanescu
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebEngineModule.HttpServletRequestProviderstatic classWebEngineModule.HttpServletResponseProvider
-
Field Summary
Fields Modifier and Type Field Description protected org.osgi.framework.Bundlebundleprotected ModuleConfigurationcfgprotected com.sun.jersey.server.impl.inject.ServerInjectableProviderContextcontextstatic StringWEBADAPTER_ANNOstatic StringWEBOBJECT_ANNO
-
Constructor Summary
Constructors Constructor Description WebEngineModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ApplicationgetApplication(org.osgi.framework.Bundle bundle, Map<String,String> args)Create a new application instance given the bundle declaring the application and the attributes specified in the manifest.org.osgi.framework.BundlegetBundle()Set<Class<?>>getClasses()ModuleConfigurationgetConfiguration()StringgetId()ModulegetModule(WebContext context)Set<Object>getSingletons()Class<?>[]getWebTypes()
-
-
-
Field Detail
-
WEBOBJECT_ANNO
public static final String WEBOBJECT_ANNO
- See Also:
- Constant Field Values
-
WEBADAPTER_ANNO
public static final String WEBADAPTER_ANNO
- See Also:
- Constant Field Values
-
context
protected com.sun.jersey.server.impl.inject.ServerInjectableProviderContext context
-
bundle
protected org.osgi.framework.Bundle bundle
-
cfg
protected ModuleConfiguration cfg
-
-
Method Detail
-
getConfiguration
public ModuleConfiguration getConfiguration()
-
getModule
public Module getModule(WebContext context)
-
getBundle
public org.osgi.framework.Bundle getBundle()
-
getClasses
public Set<Class<?>> getClasses()
- Overrides:
getClassesin classjavax.ws.rs.core.Application
-
getSingletons
public Set<Object> getSingletons()
- Overrides:
getSingletonsin classjavax.ws.rs.core.Application
-
getId
public String getId()
-
getWebTypes
public Class<?>[] getWebTypes()
-
getApplication
public javax.ws.rs.core.Application getApplication(org.osgi.framework.Bundle bundle, Map<String,String> args) throws ReflectiveOperationException, IOExceptionDescription copied from interface:ApplicationFactoryCreate a new application instance given the bundle declaring the application and the attributes specified in the manifest.- Specified by:
getApplicationin interfaceApplicationFactory- Parameters:
bundle- the bundle defining the applicationargs- the arguments parsed from manifest WebModule entry.- Throws:
ReflectiveOperationExceptionIOException
-
-