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 class
WebEngineModule.HttpServletRequestProvider
static class
WebEngineModule.HttpServletResponseProvider
-
Field Summary
Fields Modifier and Type Field Description protected org.osgi.framework.Bundle
bundle
protected ModuleConfiguration
cfg
protected com.sun.jersey.server.impl.inject.ServerInjectableProviderContext
context
static String
WEBADAPTER_ANNO
static String
WEBOBJECT_ANNO
-
Constructor Summary
Constructors Constructor Description WebEngineModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Application
getApplication(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.Bundle
getBundle()
Set<Class<?>>
getClasses()
ModuleConfiguration
getConfiguration()
String
getId()
Module
getModule(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:
getClasses
in classjavax.ws.rs.core.Application
-
getSingletons
public Set<Object> getSingletons()
- Overrides:
getSingletons
in 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, IOException
Description copied from interface:ApplicationFactory
Create a new application instance given the bundle declaring the application and the attributes specified in the manifest.- Specified by:
getApplication
in interfaceApplicationFactory
- Parameters:
bundle
- the bundle defining the applicationargs
- the arguments parsed from manifest WebModule entry.- Throws:
ReflectiveOperationException
IOException
-
-