com.netflix.adminresources.resources
Class EmbeddedContentResource

java.lang.Object
  extended by com.netflix.adminresources.resources.EmbeddedContentResource

public class EmbeddedContentResource
extends java.lang.Object

Karyon admin resources infrastructure expects modules in the form of .jar files. These .jar files contain Jersey REST resource java classes and also resources for rendering like *.js, *.jpg, *.css files. The REST classes are discovered by the Jersey container scanning the classpath. To get the other resources, we will use this class to scan the classpath (and hence the module .jar files) and return the bytes corresponding to the contents of the resources files (i.e. the *.js, *.jpg, *.css files)


Constructor Summary
EmbeddedContentResource()
           
 
Method Summary
 javax.ws.rs.core.Response get()
          The karyon admin resources can exist in the form of .jar files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedContentResource

public EmbeddedContentResource()
Method Detail

get

public javax.ws.rs.core.Response get()
The karyon admin resources can exist in the form of .jar files. These .jar files contain Jersey REST resource java classes and also resources for rendering like *.js, *.jpg, *.css files. The REST classes are discovered by the Jersey container scanning the classpath. To get the other resources, we will use this method to scan the classpath (and hence the module .jar files) and return the bytes corresponding to the contents of the resources files (i.e. the *.js, *.jpg, *.css files)