|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.flashaccess.sdk.protocol.compatibility.FMRMSv1MetadataHandler
public class FMRMSv1MetadataHandler
FMRMS 1.x metadata conversion request/response handler.
The handler reads metadata from an InputStream and parses the request when parseRequest()
is called.
The request contains metadata information packaged in media generated by FMRMS 1.x.
When a 2.0 client encounters this kind of media it sends the metadata to the server to be converted
to Flash Access 2.0 format.
See MetaDataConverter
for
details on the metadata conversion workflow.
Constructor Summary | |
---|---|
FMRMSv1MetadataHandler(java.io.InputStream in,
java.io.OutputStream out)
Instantiate a Flash Access Handler for new metadata requests and responses. |
Method Summary | |
---|---|
void |
close()
Sends the updated metadata. |
LiveCycleKeyMetaData |
getOriginalMetaData()
Returns original FMRMS 1.x metadata. |
void |
parseRequest()
Parse metadata from request. |
void |
setUpdatedMetadata(byte[] metadata)
The Flash Access v2 metadata, obtained using V2KeyMetaData.getContentMetadataBytes()
This method takes a byte[] instead of V2KeyMetaData object to allow customers to
convert and store the metadata ahead of time. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FMRMSv1MetadataHandler(java.io.InputStream in, java.io.OutputStream out)
InputStream
and
sends the updated metadata on the OutputStream
when the close()
method is called.
in
- stream containing request bodyout
- stream to which response will be writtenMethod Detail |
---|
public void parseRequest() throws HandlerParsingException
parseRequest
in interface HandlerInterface
HandlerParsingException
- if the resquest cannot be parsedpublic LiveCycleKeyMetaData getOriginalMetaData()
public void setUpdatedMetadata(byte[] metadata)
V2KeyMetaData.getContentMetadataBytes()
This method takes a byte[]
instead of V2KeyMetaData
object to allow customers to
convert and store the metadata ahead of time.
metadata
- Flash Access v2 metadatapublic void close() throws java.io.IOException
close
in interface HandlerInterface
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |