Class OutgoingResponseEventResolver
- java.lang.Object
-
- org.n52.iceland.statistics.impl.resolvers.OutgoingResponseEventResolver
-
- All Implemented Interfaces:
StatisticsServiceEventResolver<OutgoingResponseEvent>
public class OutgoingResponseEventResolver extends Object implements StatisticsServiceEventResolver<OutgoingResponseEvent>
-
-
Constructor Summary
Constructors Constructor Description OutgoingResponseEventResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutgoingResponseEventgetEvent()OutgoingResponseEventgetResponse()Map<String,Object>resolve()Resolves the the request to Elasticsearch formatvoidsetEvent(OutgoingResponseEvent event)Sets the payload to the Resolver class.voidsetHandlers(Map<String,StatisticsServiceEventHandler<?>> handlers)before the processing the Handlers can be added to the resolver via spring xmlvoidsetResponse(OutgoingResponseEvent response)
-
-
-
Method Detail
-
resolve
public Map<String,Object> resolve()
Description copied from interface:StatisticsServiceEventResolverResolves the the request to Elasticsearch format- Specified by:
resolvein interfaceStatisticsServiceEventResolver<OutgoingResponseEvent>- Returns:
- Elasticsearch format
-
getResponse
public OutgoingResponseEvent getResponse()
-
setResponse
public void setResponse(OutgoingResponseEvent response)
-
setHandlers
public void setHandlers(Map<String,StatisticsServiceEventHandler<?>> handlers)
Description copied from interface:StatisticsServiceEventResolverbefore the processing the Handlers can be added to the resolver via spring xml- Specified by:
setHandlersin interfaceStatisticsServiceEventResolver<OutgoingResponseEvent>- Parameters:
handlers- the handlers
-
setEvent
public void setEvent(OutgoingResponseEvent event)
Description copied from interface:StatisticsServiceEventResolverSets the payload to the Resolver class. Before theStatisticsServiceEventResolver.resolve()method is called.- Specified by:
setEventin interfaceStatisticsServiceEventResolver<OutgoingResponseEvent>- Parameters:
event- the event
-
getEvent
public OutgoingResponseEvent getEvent()
- Specified by:
getEventin interfaceStatisticsServiceEventResolver<OutgoingResponseEvent>
-
-