New todo, removal of old commented code
This commit is contained in:
@@ -2,7 +2,6 @@ package com.release11.klaus.controller;
|
||||
|
||||
|
||||
import com.release11.klaus.model.MockedMessageDto;
|
||||
import com.release11.klaus.model.MockedMessageDtoTest;
|
||||
import com.release11.klaus.service.KlausService;
|
||||
import com.release11.klaus.utilis.BusinessKey;
|
||||
import com.release11.klaus.utilis.TrackingClient;
|
||||
@@ -13,10 +12,15 @@ import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.RequestEntity;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.*;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
|
||||
/**
|
||||
@@ -30,40 +34,6 @@ import java.util.*;
|
||||
public class KlausController {
|
||||
|
||||
private final KlausService klausService;
|
||||
MockedMessageDto msg = MockedMessageDto.builder()
|
||||
.clientUUID(UUID.randomUUID())
|
||||
.httpStatus(200)
|
||||
.mediaType("text/xml")
|
||||
.messageBody("Hello world")
|
||||
.mockedResponseId(1)
|
||||
.httpHeaders(new HashMap<>())
|
||||
.build();
|
||||
|
||||
|
||||
@ResponseBody
|
||||
@GetMapping(value = "klaus/v1/get/test/msgtest")
|
||||
public MockedMessageDtoTest getTestMessageTest(){
|
||||
MockedMessageDtoTest msg = new MockedMessageDtoTest();
|
||||
return msg;
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@GetMapping(value = "klaus/v1/get/test/msg")
|
||||
public MockedMessageDto getTestMessage(){
|
||||
Map<String, String> headers = new HashMap<>();
|
||||
headers.put("Keep-Alive", "timeout=60");
|
||||
headers.put("Connection", "keep-alive");
|
||||
headers.put("Date", LocalDateTime.now().toString());
|
||||
MockedMessageDto msg = MockedMessageDto.builder()
|
||||
.clientUUID(UUID.randomUUID())
|
||||
.httpStatus(200)
|
||||
.mediaType("text/xml")
|
||||
.messageBody("Hello world")
|
||||
.mockedResponseId(1)
|
||||
.httpHeaders(headers)
|
||||
.build();
|
||||
return msg;
|
||||
}
|
||||
|
||||
|
||||
@DeleteMapping(value = "klaus/v1/delete/{clientUUID}/{mockedResponseId}")
|
||||
|
||||
Reference in New Issue
Block a user