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
FieldsModifier and TypeFieldDescriptionstatic final Stringin error responses on http requests, this token causes problems so remove it for better handling on client sidefinal org.springframework.messaging.simp.SimpMessagingTemplate -
Constructor Summary
ConstructorsConstructorDescriptionTigerWebUiController(RbelHtmlRenderer renderer, de.gematik.test.tiger.common.data.config.tigerproxy.TigerProxyConfiguration proxyConfiguration, org.springframework.messaging.simp.SimpMessagingTemplate template, TigerBuildPropertiesService buildProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandownloadTraffic(String lastMsgUuid, String filterCriterion, Optional<Integer> pageSize, jakarta.servlet.http.HttpServletResponse response) booleanorg.springframework.context.ApplicationContextorg.springframework.http.ResponseEntity<org.springframework.core.io.Resource>org.springframework.http.ResponseEntity<org.springframework.core.io.Resource>getIndex()getMessagesWithHtml(int fromOffset, int toOffsetExcluding, String filterRbelPath) getMessagesWithMeta(String filterRbelPath) de.gematik.test.tiger.common.data.config.tigerproxy.TigerProxyConfigurationorg.springframework.messaging.simp.SimpMessagingTemplateinthashCode()voidimportTraffic(String rawTraffic) voidsearchMessages(String filterRbelPath, String searchRbelPath) voidsetApplicationContext(org.springframework.context.ApplicationContext appContext) voidsetTigerProxy(TigerProxy tigerProxy) testFilterMessages(String filterRbelPath) testJexlQuery(String messageUuid, String query) testRbelExpression(String msgUuid, String query) 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:
-
template
public final org.springframework.messaging.simp.SimpMessagingTemplate template
-
-
Constructor Details
-
TigerWebUiController
@ConstructorProperties({"renderer","proxyConfiguration","template","buildProperties"}) public TigerWebUiController(RbelHtmlRenderer renderer, de.gematik.test.tiger.common.data.config.tigerproxy.TigerProxyConfiguration proxyConfiguration, org.springframework.messaging.simp.SimpMessagingTemplate template, TigerBuildPropertiesService buildProperties)
-
-
Method Details
-
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
-
getIndex
@GetMapping("") public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getIndex() -
getAsset
@GetMapping("/assets/{asset}") public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getAsset(@PathVariable("asset") String assetFile) -
testJexlQuery
@GetMapping(value="/testJexlQuery", produces="application/json") public JexlQueryResponseScrollableDto testJexlQuery(@RequestParam(name="messageUuid") String messageUuid, @RequestParam(name="query") String query) -
testRbelExpression
@GetMapping(value="/testRbelExpression", produces="application/json") public RbelTreeResponseScrollableDto testRbelExpression(@RequestParam(name="messageUuid") String msgUuid, @RequestParam(name="query") String query) -
getMessagesWithHtml
@GetMapping(value="/getMessagesWithHtml", produces="application/json") public GetMessagesWithHtmlScrollableDto getMessagesWithHtml(@RequestParam(name="fromOffset") int fromOffset, @RequestParam(name="toOffsetExcluding") int toOffsetExcluding, @RequestParam(name="filterRbelPath",required=false) String filterRbelPath) -
getMessagesWithMeta
@GetMapping(value="/getMessagesWithMeta", produces="application/json") public GetMessagesWithMetaScrollableDto getMessagesWithMeta(@RequestParam(name="filterRbelPath",required=false) String filterRbelPath) -
testFilterMessages
@GetMapping(value="/testFilterMessages", produces="application/json") public SearchMessagesScrollableDto testFilterMessages(@RequestParam(name="filterRbelPath",required=false) String filterRbelPath) -
searchMessages
@GetMapping(value="/searchMessages", produces="application/json") public SearchMessagesScrollableDto searchMessages(@RequestParam(name="filterRbelPath") String filterRbelPath, @RequestParam(name="searchRbelPath") String searchRbelPath) -
downloadTraffic
@GetMapping(value="/trafficLog*.tgr", produces="application/octet-stream") public String downloadTraffic(@RequestParam(name="lastMsgUuid",required=false) String lastMsgUuid, @RequestParam(name="filterRbelPath",required=false) String filterCriterion, @RequestParam(name="pageSize",required=false) Optional<Integer> pageSize, jakarta.servlet.http.HttpServletResponse response) -
resetMessages
@GetMapping(value="/resetMessages", produces="application/json") public ResetMessagesDto resetMessages() -
quitProxy
@GetMapping(value="/quit", produces="application/json") public void quitProxy(@RequestParam(name="noSystemExit",required=false) String noSystemExit) -
importTraffic
-
getTigerProxy
-
getRenderer
-
getProxyConfiguration
public de.gematik.test.tiger.common.data.config.tigerproxy.TigerProxyConfiguration getProxyConfiguration() -
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext() -
getTemplate
public org.springframework.messaging.simp.SimpMessagingTemplate getTemplate() -
getBuildProperties
-
setTigerProxy
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-