Package com.azaptree.wadl

Examples of com.azaptree.wadl.Response


        final Method method = new Method();
        method.setName("GET");
        resource.getMethodOrResource().add(method);

        final Response response = new Response();
        method.getResponse().add(response);
        response.getStatus().add(Long.valueOf(HttpStatus.OK_200));
        final Representation representation = new Representation();
        representation.setMediaType("application/xml");
        response.getRepresentation().add(representation);
      }

    }

    return resources;
View Full Code Here


        }
        request.getRepresentation().add(representation);
      }

      if (getResponseClass().isPresent()) {
        final Response response = new Response();
        method.getResponse().add(response);
        response.getStatus().add(Long.valueOf(HttpStatus.OK_200));
        final Representation representation = new Representation();
        representation.setMediaType("application/xml");

        final Optional<QName> elementName = getResponseXmlElement();
        if (elementName.isPresent()) {
          representation.setElement(elementName.get());
        }
        response.getRepresentation().add(representation);
      }
    }

    return resource;
  }
View Full Code Here

TOP

Related Classes of com.azaptree.wadl.Response

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.