Class GatewayController


  • @Controller
    @RequestMapping("/gateway")
    public class GatewayController
    extends AbstractController
    • Constructor Detail

      • GatewayController

        public GatewayController()
    • Method Detail

      • pingGateway

        @RequestMapping(value="/ping/{peerId}",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPPeer> pingGateway​(javax.servlet.http.HttpServletRequest request,
                                                                       @PathVariable("peerId")
                                                                       String peerId,
                                                                       javax.servlet.http.HttpServletResponse response)
        Parameters:
        request - HttpServletRequest
        response - HttpServletResponse
        peerId -
        Returns:
        MLP Peer
      • getSolutions

        @RequestMapping(value="/solutions",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<List<org.acumos.cds.domain.MLPSolution>> getSolutions​(javax.servlet.http.HttpServletRequest request,
                                                                                  @RequestBody
                                                                                  org.acumos.cds.domain.MLPPeerSubscription peerSubscription,
                                                                                  javax.servlet.http.HttpServletResponse response)
        Parameters:
        request - HttpServletRequest
        response - HttpServletResponse
        peerSubscription -
        Returns:
        MLPSolution Solution
      • getSolution

        @RequestMapping(value="{solutionId}/solution/{peerId}",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPSolution> getSolution​(javax.servlet.http.HttpServletRequest request,
                                                                           @PathVariable("solutionId")
                                                                           String solutionId,
                                                                           @PathVariable("peerId")
                                                                           String peerId,
                                                                           javax.servlet.http.HttpServletResponse response)
        Parameters:
        request - HttpServletRequest
        response - HttpServletResponse
        solutionId -
        Returns:
        MLPSolution Solution
      • getCatalogs

        @RequestMapping(value="/catalogs/{peerId}",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<List<org.acumos.cds.domain.MLPCatalog>> getCatalogs​(javax.servlet.http.HttpServletRequest request,
                                                                                @PathVariable("peerId")
                                                                                String peerId,
                                                                                javax.servlet.http.HttpServletResponse response)