|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.infront.assembler.event.AssemblerEventAdapter com.endeca.infront.assembler.event.request.RequestEventListener
public abstract class RequestEventListener
Consolidates Assembler
request event information and fires a
method with the request information. Extend this class to create
custom adaptors for the request events to do things such as send the
information to a log server or attach the data to the
content item returned by the Assembler.
LogServerAdapter
,
ContentItemAugmentAdapter
Constructor Summary | |
---|---|
RequestEventListener()
Creates a new RequestEventListener without a SessionIdProvider . |
|
RequestEventListener(SessionIdProvider sessionIdProvider)
Creates a new RequestEventListener with the given SessionIdProvider. |
Method Summary | |
---|---|
void |
assemblyComplete(AssemblerEvent event)
Performs final updates to the RequestEvent for the
current request and invokes the handleAssemblerRequestEvent(com.endeca.infront.assembler.event.request.RequestEvent, com.endeca.infront.assembler.ContentItem)
method on it. |
void |
assemblyError(AssemblerEvent event)
Cleans up the RequestEvent for the current request |
void |
assemblyStarting(AssemblerEvent event)
Initializes the RequestEvent for the current request |
abstract void |
handleAssemblerRequestEvent(RequestEvent requestEvent,
ContentItem rootContentItem)
This method is invoked when an Assembler invocation is
complete and the corresponding RequestEvent is fully
populated. |
Methods inherited from class com.endeca.infront.assembler.event.AssemblerEventAdapter |
---|
cartridgeError, cartridgeInitializeComplete, cartridgeInitializeStarting, cartridgePreprocessComplete, cartridgePreprocessStarting, cartridgeProcessComplete, cartridgeProcessStarting |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestEventListener()
SessionIdProvider
. This means that the user session ID
will not be included on the RequestEvent
.
public RequestEventListener(SessionIdProvider sessionIdProvider)
sessionIdProvider
- used to determine the user session ID,
which will then be added to the RequestEvent
Method Detail |
---|
public void assemblyStarting(AssemblerEvent event)
RequestEvent
for the current request
assemblyStarting
in interface AssemblerEventListener
assemblyStarting
in class AssemblerEventAdapter
event
- an event object that describes the request context and input content item}public void assemblyComplete(AssemblerEvent event)
RequestEvent
for the
current request and invokes the handleAssemblerRequestEvent(com.endeca.infront.assembler.event.request.RequestEvent, com.endeca.infront.assembler.ContentItem)
method on it.
assemblyComplete
in interface AssemblerEventListener
assemblyComplete
in class AssemblerEventAdapter
event
- an event object that describes the request context and returned content item}public void assemblyError(AssemblerEvent event)
RequestEvent
for the current request
assemblyError
in interface AssemblerEventListener
assemblyError
in class AssemblerEventAdapter
event
- an event object that describes the request context, partially assembled item, and error}CartridgeHandler.preprocess(ContentItem)
,
CartridgeHandler.process(ContentItem)
public abstract void handleAssemblerRequestEvent(RequestEvent requestEvent, ContentItem rootContentItem)
This method is invoked when an Assembler
invocation is
complete and the corresponding RequestEvent
is fully
populated.
Subclasses should implement this method to do whatever it is their purpose to do with the RequestEvent. For example:
requestEvent
- The event for the current requestrootContentItem
- The assembler output
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |