Class ApplicationFragment

java.lang.Object
javax.ws.rs.core.Application
org.nuxeo.ecm.webengine.jaxrs.ApplicationFragment

public class ApplicationFragment extends javax.ws.rs.core.Application
A wrapper for a JAX-RS application fragment declared in manifest. The fragment application will be added to the target host application.
Author:
Bogdan Stefanescu
  • Field Details

    • hostName

      protected final String hostName
    • bundle

      protected final org.osgi.framework.Bundle bundle
    • attrs

      protected final Map<String,String> attrs
    • appClass

      protected String appClass
  • Constructor Details

    • ApplicationFragment

      public ApplicationFragment(org.osgi.framework.Bundle bundle, String appClass)
    • ApplicationFragment

      public ApplicationFragment(org.osgi.framework.Bundle bundle, String appClass, String host)
    • ApplicationFragment

      public ApplicationFragment(org.osgi.framework.Bundle bundle, String appClass, Map<String,String> attrs)
  • Method Details

    • getApplication

      public javax.ws.rs.core.Application getApplication()
    • createAttributes

      public static Map<String,String> createAttributes(String hostName)
    • createApp

      protected void createApp()
    • reload

      public void reload()
    • getBundle

      public org.osgi.framework.Bundle getBundle()
    • getAttrs

      public Map<String,String> getAttrs()
    • getHostName

      public String getHostName()
    • get

      public javax.ws.rs.core.Application get()
    • getClasses

      public Set<Class<?>> getClasses()
      Overrides:
      getClasses in class javax.ws.rs.core.Application
    • getSingletons

      public Set<Object> getSingletons()
      Overrides:
      getSingletons in class javax.ws.rs.core.Application