@Controller @RequestMapping(value="/events") public class WiretapEventsSearchFormController extends Object
| Constructor and Description |
|---|
WiretapEventsSearchFormController(WiretapService wiretapService,
ModuleService moduleService,
PointToPointFlowProfileService pointToPointFlowProfileService)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Set<Module> |
getModules()
Get the modules
|
Set<PointToPointFlowProfile> |
getPointToPointFlowProfiles()
Get the point to point flow profiles
|
String |
initialiseWiretapEventSearch()
Show the combined wiretap event search and search results view
|
String |
listWiretapEvents(javax.servlet.http.HttpServletRequest request,
Integer page,
String orderBy,
Boolean orderAsc,
String pointToPointFlowProfileSearch,
Boolean pointToPointFlowProfileSelectAll,
Boolean moduleSelectAll,
Integer pageSize,
Set<Long> moduleIds,
Set<Long> pointToPointFlowProfileIds,
String moduleFlow,
String componentName,
String eventId,
String payloadId,
String fromDateString,
String fromTimeString,
String untilDateString,
String untilTimeString,
String payloadContent,
org.springframework.ui.ModelMap model)
Show the combined wiretap event search and search results view
|
void |
outputFile(long wiretapEventId,
javax.servlet.http.HttpServletResponse response)
Download the payload content as a file
TODO Improve Error handling?
|
org.springframework.web.servlet.ModelAndView |
viewEvent(long wiretapEventId,
String searchResultsUrl,
org.springframework.ui.ModelMap modelMap)
View a specified WiretapEvent
|
org.springframework.web.servlet.ModelAndView |
viewModuleDesign(long moduleId,
javax.servlet.http.HttpServletResponse response)
Retrieve a link to a module design resource that can be displayed to the end user (or perhaps downloaded)
TODO Improve Error handling?
|
org.springframework.web.servlet.ModelAndView |
viewPrettyPayloadContent(long wiretapEventId,
javax.servlet.http.HttpServletResponse response)
View a specific payload content in a best guess native format
|
@Autowired public WiretapEventsSearchFormController(WiretapService wiretapService, ModuleService moduleService, PointToPointFlowProfileService pointToPointFlowProfileService)
wiretapService - - The wiretap service to usemoduleService - - The module service to usepointToPointFlowProfileService - - The point to point flow profile
container to use@ModelAttribute(value="modules") public Set<Module> getModules()
@ModelAttribute(value="pointToPointFlowProfiles") public Set<PointToPointFlowProfile> getPointToPointFlowProfiles()
@RequestMapping(value="newSearch.htm") public String initialiseWiretapEventSearch()
@RequestMapping(value="list.htm") public String listWiretapEvents(javax.servlet.http.HttpServletRequest request, @RequestParam(required=false) Integer page, @RequestParam(required=false) String orderBy, @RequestParam(required=false) Boolean orderAsc, @RequestParam(required=false) String pointToPointFlowProfileSearch, @RequestParam(required=false) Boolean pointToPointFlowProfileSelectAll, @RequestParam(required=false) Boolean moduleSelectAll, @RequestParam(required=false) Integer pageSize, @RequestParam(required=false) Set<Long> moduleIds, @RequestParam(required=false) Set<Long> pointToPointFlowProfileIds, @RequestParam(required=false) String moduleFlow, @RequestParam(required=false) String componentName, @RequestParam(required=false) String eventId, @RequestParam(required=false) String payloadId, @RequestParam(required=false) String fromDateString, @RequestParam(required=false) String fromTimeString, @RequestParam(required=false) String untilDateString, @RequestParam(required=false) String untilTimeString, @RequestParam(required=false) String payloadContent, org.springframework.ui.ModelMap model)
request - - Standard HttpRequestpage - - page index into the greater result setorderBy - - The field to order byorderAsc - - Ascending flagpointToPointFlowProfileSearch - - Flag to indicate what type of
searchpointToPointFlowProfileSelectAll - - Select all boolean for
pointToPointFlowProfile based searchmoduleSelectAll - - Select all boolean for module based searchpageSize - - Number of search results to display per pagemoduleIds - - Set of ids of modules to include in search - must
contain at least one idpointToPointFlowProfileIds - - Set of ids of point to point flow
profiles to include in search - must contain at least one
pointToPointFlowProfileIdmoduleFlow - - The internal Flow of the Module to search oncomponentName - - The name of the componenteventId - - The Event IdpayloadId - - The Payload IdfromDateString - - Include only events after fromDatefromTimeString - - Include only events after fromDateuntilDateString - - Include only events before untilDateuntilTimeString - - Include only events before untilDatepayloadContent - - The Payload contentmodel - - The model (map)@RequestMapping(value="viewEvent.htm")
public org.springframework.web.servlet.ModelAndView viewEvent(@RequestParam(value="wiretapEventId")
long wiretapEventId,
@RequestParam(required=false)
String searchResultsUrl,
org.springframework.ui.ModelMap modelMap)
wiretapEventId - The id of the wiretapped event to getsearchResultsUrl - The Search Results Page we came frommodelMap - The model@RequestMapping(value="viewPrettyPayloadContent.htm")
public org.springframework.web.servlet.ModelAndView viewPrettyPayloadContent(@RequestParam(value="wiretapEventId")
long wiretapEventId,
javax.servlet.http.HttpServletResponse response)
wiretapEventId - The id of the wiretap event to getresponse - - Standard response stream@RequestMapping(value="viewModuleDesign.htm")
public org.springframework.web.servlet.ModelAndView viewModuleDesign(@RequestParam(value="moduleId")
long moduleId,
javax.servlet.http.HttpServletResponse response)
moduleId - - The id of the module to get the resource forresponse - - The response stream to output the resource to@RequestMapping(value="downloadPayloadContent.htm")
public void outputFile(@RequestParam(value="wiretapEventId")
long wiretapEventId,
javax.servlet.http.HttpServletResponse response)
wiretapEventId - - The Event id of the wiretapped event to downloadresponse - - The HttpServletResponse object, content is streamed to
thisCopyright © 2007-2015 Ikasan. All Rights Reserved.