|
NextApp Echo App Container 1.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echoservlet.StaticBinary
A service that renders static binary data.
Constructor Summary | |
StaticBinary(ContentType contentType,
byte[] data)
Deprecated. The StaticBinary(String, ContentType, String) constructor should be used instead. Use of this version may result in errors if applications are migrated between VMs, due to the Service having a different identifier on each VM. |
|
StaticBinary(java.lang.String identifier,
ContentType contentType,
byte[] data)
Creates a new binary content object. |
Method Summary | |
static StaticBinary |
createFromResource(java.lang.String resourceName)
Deprecated. The createFromResource(String, String) method should be used instead. Use of this version may result in errors if applications are migrated between VMs, due to the Service having a different identifier on each VM. |
static StaticBinary |
createFromResource(java.lang.String identifier,
java.lang.String resourceName)
Creates a StaticBinary object by way of a resource name. |
ContentType |
getContentType()
Returns the content type. |
Id |
getId()
Returns a unique identifier for this service. |
int |
getVersion()
Returns zero to indicate that the content will never change. |
void |
service(Connection conn)
Services an HTTP request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StaticBinary(ContentType contentType, byte[] data)
contentType
- The content type of the object.data
- A byte array containing the binary content.public StaticBinary(java.lang.String identifier, ContentType contentType, byte[] data)
identifier
- A unique identifier for this service.contentType
- The content type of the object.data
- A byte array containing the binary content.Method Detail |
public static StaticBinary createFromResource(java.lang.String resourceName)
StaticBinary
object by way of a resource name.
The content type will be determined from the resource's extension.
resourceName
- The name of the resource from which to create the
StaticBinary
object.
StaticBinary
object containing the content of the
specified resource.public static StaticBinary createFromResource(java.lang.String identifier, java.lang.String resourceName)
StaticBinary
object by way of a resource name.
The content type will be determined from the resource's extension.
identifier
- A unique identifier for this service.resourceName
- The name of the resource from which to create the
StaticBinary
object.
StaticBinary
object containing the content of the
specified resource.public ContentType getContentType()
public Id getId()
Service
getId
in interface Service
Service.getId()
public int getVersion()
getVersion
in interface CacheableService
public void service(Connection conn) throws java.io.IOException
Service
service
in interface Service
conn
- A Connection
object which wraps
HttpServletRequest
and
HttpServletResponse
objects and provides
access to the facilities of the Echo application container.
java.io.IOException
- in the event of errors related to processing the
HTTP request or producing a response.Service.service(Connection)
|
NextApp Echo App Container 1.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |