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

Examples of com.abiquo.server.core.infrastructure.network.AbstractIpDto


   @Override
   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


   @Override
   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

Related Classes of com.abiquo.server.core.infrastructure.network.AbstractIpDto

Copyright © 2018 www.massapicom. 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.