Class MessagePartnerV3Controller
java.lang.Object
ch.admin.bit.jeap.messageexchange.web.api.MessagePartnerV3Controller
@RestController
@Validated
@RequestMapping("/api/partner/v3/messages")
public class MessagePartnerV3Controller
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionMessagePartnerV3Controller(MessageExchangeService messageExchangeService, ControllerStreams controllerStreams, ch.admin.bit.jeap.security.resource.semanticAuthentication.ServletSemanticAuthorization jeapSemanticAuthorization) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getMessage(UUID messageId, String bpId) getMessages(String bpId, String topicName, String groupId, UUID lastMessageId, String partnerTopic, int size, jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getNextMessage(UUID lastMessageId, String bpId, String partnerTopic, String topicName) org.springframework.http.ResponseEntity<Void> sendMessage(UUID messageId, String bpId, String messageType, jakarta.servlet.http.HttpServletRequest request)
-
Constructor Details
-
MessagePartnerV3Controller
public MessagePartnerV3Controller(MessageExchangeService messageExchangeService, ControllerStreams controllerStreams, ch.admin.bit.jeap.security.resource.semanticAuthentication.ServletSemanticAuthorization jeapSemanticAuthorization)
-
-
Method Details
-
sendMessage
@PutMapping(value="/{messageId}", consumes="application/xml") @PreAuthorize("hasRole(\'b2bmessagein\',\'write\')") public org.springframework.http.ResponseEntity<Void> sendMessage(@PathVariable("messageId") UUID messageId, @RequestHeader("bp-id") String bpId, @RequestHeader("message-type") String messageType, jakarta.servlet.http.HttpServletRequest request) throws InvalidBpIdException, IOException, MissingRequiredHeaderException -
getMessages
@GetMapping(value="", produces="application/xml") @PreAuthorize("hasRole(\'b2bmessageout\',\'read\')") public MessagesResultDto getMessages(@RequestHeader("bp-id") String bpId, @RequestParam(value="topicName",required=false) String topicName, @RequestParam(value="groupId",required=false) String groupId, @RequestParam(value="lastMessageId",required=false) UUID lastMessageId, @RequestParam(value="partnerTopic",required=false) String partnerTopic, @RequestParam(value="size",defaultValue="1000") int size, jakarta.servlet.http.HttpServletRequest request) throws InvalidBpIdException - Throws:
InvalidBpIdException
-
getMessage
@GetMapping(value="/{messageId}", produces="application/xml") @PreAuthorize("hasRole(\'b2bmessageout\',\'read\')") public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getMessage(@PathVariable("messageId") UUID messageId, @RequestHeader("bp-id") String bpId) throws InvalidBpIdException - Throws:
InvalidBpIdException
-
getNextMessage
@GetMapping(value="/{messageId}/next", produces="application/xml") @PreAuthorize("hasRole(\'b2bmessageout\',\'read\')") public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getNextMessage(@PathVariable("messageId") UUID lastMessageId, @RequestHeader("bp-id") String bpId, @RequestParam(value="partnerTopic",required=false) String partnerTopic, @RequestParam(value="topicName",required=false) String topicName) throws InvalidBpIdException, MissingRequiredHeaderException
-