Package com.abiquo.server.core.infrastructure.network

Examples of com.abiquo.server.core.infrastructure.network.AbstractIpDto.searchLink()


   public <R extends HttpRequest> R bindToRequest(final R request, final Object input) {
      checkArgument(checkNotNull(input, "input") instanceof AbstractIpDto,
            "this binder is only valid for AbstractIpDto objects");

      AbstractIpDto ip = (AbstractIpDto) input;
      RESTLink selfLink = checkNotNull(ip.searchLink("self"), "AbstractIpDto must have an self link");

      LinksDto refs = new LinksDto();
      refs.addLink(new RESTLink(selfLink.getTitle(), selfLink.getHref()));

      return super.bindToRequest(request, refs);
View Full Code Here


   public <R extends HttpRequest> R bindToRequest(final R request, final Object input) {
      checkArgument(checkNotNull(input, "input") instanceof AbstractIpDto,
            "this binder is only valid for AbstractIpDto objects");

      AbstractIpDto ip = (AbstractIpDto) input;
      RESTLink selfLink = checkNotNull(ip.searchLink("self"), "AbstractIpDto must have an self link");

      LinksDto refs = new LinksDto();
      refs.addLink(new RESTLink(selfLink.getTitle(), selfLink.getHref()));

      return super.bindToRequest(request, refs);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.