|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.lwes.EventFactory
public class EventFactory
| Constructor Summary | |
|---|---|
EventFactory()
EventFactory constructor. |
|
| Method Summary | |
|---|---|
Event |
createEvent(byte[] bytes)
Create an event from an array of bytes |
Event |
createEvent(byte[] bytes,
boolean validate)
Create an event from an array of bytes, with optional validation |
Event |
createEvent(java.lang.String eventName)
Creates a validated event named eventName. |
Event |
createEvent(java.lang.String eventName,
boolean validate)
Create an event named eventName and optionally validate the event. |
Event |
createEvent(java.lang.String eventName,
boolean validate,
short encoding)
Create an event named eventName with optional validation and specified encoding |
Event |
createEvent(java.lang.String eventName,
short encoding)
Create a validated event named eventName with specified encoding. |
java.io.File |
getESFFile()
Gets the ESF file used for validation. |
java.lang.String |
getESFFilePath()
Gets the path of an ESF file used for validation. |
java.io.InputStream |
getESFInputStream()
Gets an InputStream of the ESF file to use for validation. |
void |
initialize()
Initializes the EventFactory along with pointers to the ESF file |
void |
setESFFile(java.io.File esfFile)
Sets an ESF file for validation. |
void |
setESFFilePath(java.lang.String path)
Sets the path of an ESF file to use for validation. |
void |
setESFInputStream(java.io.InputStream input)
Sets the InputStream of an ESF file to use for validation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventFactory()
| Method Detail |
|---|
public java.io.File getESFFile()
public void setESFFile(java.io.File esfFile)
esfFile - the File object to setpublic java.lang.String getESFFilePath()
public void setESFFilePath(java.lang.String path)
path - the path to the ESF filepublic java.io.InputStream getESFInputStream()
public void setESFInputStream(java.io.InputStream input)
input - the InputStream to use
public void initialize()
throws EventSystemException
EventSystemException - if there is an exception with setting the ESF files
public Event createEvent(java.lang.String eventName)
throws EventSystemException
eventName - the name of the event
EventSystemException - if there is a problem creating the event
public Event createEvent(java.lang.String eventName,
short encoding)
throws EventSystemException
eventName - the name of the eventencoding - the encoding to use
EventSystemException - if there is a problem creating the event
public Event createEvent(java.lang.String eventName,
boolean validate)
throws EventSystemException
eventName - the name of the eventvalidate - whether or not to validate the event against the EventTemplateDB
EventSystemException - if there is a problem creating the event
public Event createEvent(java.lang.String eventName,
boolean validate,
short encoding)
throws EventSystemException
eventName - the name of the eventvalidate - whether or not to validate the event against the EventTemplateDBencoding - the encoding to use
EventSystemException - if there is a problem creating the event
public Event createEvent(byte[] bytes)
throws EventSystemException
bytes - the byte array
EventSystemException - if there is a problem creating the event
public Event createEvent(byte[] bytes,
boolean validate)
throws EventSystemException
bytes - the byte arrayvalidate - whether or not to validate this event against the EventTemplateDB
EventSystemException - if there is a problem creating the event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||