Class PortForwardingServiceImpl

    • Constructor Detail

      • PortForwardingServiceImpl

        public PortForwardingServiceImpl()
    • Method Detail

      • list

        public List<? extends PortForwarding> list​(String floatingIpId)
        Returns list of floating IP port forwarding.
        Specified by:
        list in interface PortForwardingService
        Parameters:
        floatingIpId - the floating ip identifier
        Returns:
        List of port forwarding
      • list

        public List<? extends PortForwarding> list​(String floatingIpId,
                                                   Map<String,​String> filteringParams)
        Returns list of floating IP port forwarding filtered by parameters.
        Specified by:
        list in interface PortForwardingService
        Parameters:
        floatingIpId - the floating ip identifier
        filteringParams - map (name, value) of filtering parameters
        Returns:
        list of floating IP port forwarding
      • get

        public PortForwarding get​(String floatingIpId,
                                  String id)
        Gets a floating IP port forwarding by id.
        Specified by:
        get in interface PortForwardingService
        Parameters:
        floatingIpId - the floating ip identifier
        id - the port_forwarding identifier
        Returns:
        a floating IP port forwarding
      • delete

        public ActionResponse delete​(String floatingIpId,
                                     String id)
        Deletes floating IP port forwarding by id.
        Specified by:
        delete in interface PortForwardingService
        Parameters:
        floatingIpId - the floating ip identifier
        id - id the port forwarding identifier
        Returns:
        the action response
      • create

        public PortForwarding create​(String floatingIpId,
                                     PortForwarding portForwarding)
        Creates a floating IP port forwarding
        Specified by:
        create in interface PortForwardingService
        Parameters:
        floatingIpId - the floating ip identifier
        portForwarding - the floating IP port forwarding
        Returns:
        the floating IP port forwarding