Class TigerWebUiController
java.lang.Object
de.gematik.test.tiger.proxy.controller.TigerWebUiController
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@RestController
@RequestMapping("webui")
@Validated
public class TigerWebUiController
extends Object
implements org.springframework.context.ApplicationContextAware
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTigerWebUiController(TigerProxy tigerProxy, RbelHtmlRenderer renderer, ApplicationConfiguration applicationConfiguration, org.springframework.messaging.simp.SimpMessagingTemplate template, TigerBuildPropertiesService buildProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected booleandownloadHtml(String lastMsgUuid, String filterCriterion) downloadTraffic(String lastMsgUuid, String filterCriterion, Optional<Integer> pageSize, jakarta.servlet.http.HttpServletResponse response) booleanorg.springframework.context.ApplicationContextgetMessagesAfter(String lastMsgUuid, String filterCriterion, int pageSize, int pageNumber) org.springframework.messaging.simp.SimpMessagingTemplategetUI(boolean embedded) org.springframework.http.ResponseEntity<byte[]>getWebFont(String fontFile) inthashCode()voidimportTrafficFromFile(String rawTraffic) voidvoidsetApplicationContext(org.springframework.context.ApplicationContext appContext) testJexlQuery(String msgUuid, String query) testRbelExpression(String msgUuid, String rbelPath) toString()
-
Field Details
-
REGEX_STATUSCODE_TOKEN
in error responses on http requests, this token causes problems so remove it for better handling on client side- See Also:
-
DROPDOWN
- See Also:
-
template
public final org.springframework.messaging.simp.SimpMessagingTemplate template
-
-
Constructor Details
-
TigerWebUiController
@ConstructorProperties({"tigerProxy","renderer","applicationConfiguration","template","buildProperties"}) public TigerWebUiController(TigerProxy tigerProxy, RbelHtmlRenderer renderer, ApplicationConfiguration applicationConfiguration, org.springframework.messaging.simp.SimpMessagingTemplate template, TigerBuildPropertiesService buildProperties)
-
-
Method Details
-
addWebSocketListener
@PostConstruct public void addWebSocketListener() -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext appContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
downloadTraffic
@GetMapping(value="/trafficLog*.tgr", produces="application/octet-stream") public String downloadTraffic(@RequestParam(name="lastMsgUuid",required=false) String lastMsgUuid, @RequestParam(name="filterCriterion",required=false) String filterCriterion, @RequestParam(name="pageSize",required=false) Optional<Integer> pageSize, jakarta.servlet.http.HttpServletResponse response) -
downloadHtml
-
getUI
@GetMapping(value="", produces="text/html") public String getUI(@RequestParam(defaultValue="false") boolean embedded) -
getCSS
@GetMapping(value="/css/{cssfile}", produces="text/css") public String getCSS(@PathVariable("cssfile") String cssFile) throws IOException - Throws:
IOException
-
testJexlQuery
@GetMapping(value="/testJexlQuery", produces="application/json") public JexlQueryResponseDto testJexlQuery(@RequestParam(name="msgUuid") String msgUuid, @RequestParam(name="query") String query) -
testRbelExpression
@GetMapping(value="/testRbelExpression", produces="application/json") public JexlQueryResponseDto testRbelExpression(@RequestParam(name="msgUuid") String msgUuid, @RequestParam(name="rbelPath") String rbelPath) -
getWebFont
@GetMapping(value="/webfonts/{fontfile}", produces="text/css") public org.springframework.http.ResponseEntity<byte[]> getWebFont(@PathVariable("fontfile") String fontFile) throws IOException - Throws:
IOException
-
getMessagesAfter
@GetMapping(value="/getMsgAfter", produces="application/json") public GetMessagesAfterDto getMessagesAfter(@RequestParam(name="lastMsgUuid",required=false) String lastMsgUuid, @RequestParam(name="filterCriterion",required=false) String filterCriterion, @RequestParam(defaultValue="1000000") int pageSize, @RequestParam(defaultValue="0") int pageNumber) -
resetMessages
@GetMapping(value="/resetMsgs", produces="application/json") public ResetMessagesDto resetMessages() -
quitProxy
@GetMapping(value="/quit", produces="application/json") public void quitProxy(@RequestParam(name="noSystemExit",required=false) String noSystemExit) -
importTrafficFromFile
-
getTigerProxy
-
getRenderer
-
getApplicationConfiguration
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext() -
getTemplate
public org.springframework.messaging.simp.SimpMessagingTemplate getTemplate() -
getBuildProperties
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-