Class EcommerceLogisticsController

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @RestController
    public class EcommerceLogisticsController
    extends java.lang.Object
    implements org.springframework.beans.factory.InitializingBean
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterPropertiesSet()  
      org.springframework.http.ResponseEntity<?> handleCdekGet​(java.util.Map<java.lang.String,​java.lang.Object> request)  
      org.springframework.http.ResponseEntity<?> handleCdekPost​(java.util.Map<java.lang.String,​java.lang.Object> request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mapper

        private final com.fasterxml.jackson.databind.ObjectMapper mapper
    • Constructor Detail

      • EcommerceLogisticsController

        public EcommerceLogisticsController()
    • Method Detail

      • handleCdekGet

        @CrossOrigin(origins="*",
                     allowCredentials="false")
        @GetMapping(value="/api/v1/cdek",
                    produces="application/json")
        public org.springframework.http.ResponseEntity<?> handleCdekGet​(@RequestParam
                                                                        java.util.Map<java.lang.String,​java.lang.Object> request)
      • handleCdekPost

        @PostMapping(value="/api/v1/cdek",
                     consumes="application/json")
        public org.springframework.http.ResponseEntity<?> handleCdekPost​(@RequestBody
                                                                         java.util.Map<java.lang.String,​java.lang.Object> request)
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception