Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webengine.jaxrs
Class ApplicationFragment

java.lang.Object
  extended by javax.ws.rs.core.Application
      extended by 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

Constructor Summary
ApplicationFragment(org.osgi.framework.Bundle bundle, String appClass)
           
ApplicationFragment(org.osgi.framework.Bundle bundle, String appClass, Map<String,String> attrs)
           
ApplicationFragment(org.osgi.framework.Bundle bundle, String appClass, String host)
           
 
Method Summary
static Map<String,String> createAttributes(String hostName)
           
 javax.ws.rs.core.Application get()
           
 Map<String,String> getAttrs()
           
 org.osgi.framework.Bundle getBundle()
           
 Set<Class<?>> getClasses()
           
 String getHostName()
           
 Set<Object> getSingletons()
           
 void reload()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

createAttributes

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

reload

public void reload()
            throws Exception
Throws:
Exception

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

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.