| java.lang.Object nextapp.echo2.webrender.service.StaticBinaryService
StaticBinaryService | public class StaticBinaryService implements Service(Code) | | A Service which renders a static binary resource.
|
StaticBinaryService | public StaticBinaryService(String id, String contentType, byte[] data)(Code) | | Creates a new StaticBinaryService .
Parameters: id - the Service identifier Parameters: contentType - the content type Parameters: data - the binary data |
forResource | public static StaticBinaryService forResource(String id, String contentType, String resourceName)(Code) | | Creates a new StaticBinaryService based on the data in the
specified CLASSPATH resource. A runtime exception will be
thrown in the even the resource does not exist (it generally should not
be caught).
Parameters: id - the Service identifier Parameters: contentType - the content type Parameters: resourceName - the path to the content data in the CLASSPATH the created StaticBinaryService |
|
|