Package com.abiquo.model.transport

Examples of com.abiquo.model.transport.SingleResourceTransportDto


    * @param input
    *           The input parameter.
    * @return The new endpoint to use.
    */
   protected String getNewEndpoint(final GeneratedHttpRequest gRequest, final Object input) {
      SingleResourceTransportDto dto = checkValidInput(input);
      return getLinkToUse(gRequest, dto).getHref();
   }
View Full Code Here


    */
   public static void assertPayloadEquals(final Payload payload, final String expected,
         final Class<? extends SingleResourceTransportDto> entityClass) throws IOException {
      // Serialize and deserialize to avoid formatting issues
      XMLParser xml = new JAXBParser("false");
      SingleResourceTransportDto entity = xml.fromXML(expected, entityClass);
      String toMatch = xml.toXML(entity, entityClass);

      assertEquals(payload.getRawContent(), toMatch);
   }
View Full Code Here

    * @param input
    *           The input parameter.
    * @return The new endpoint to use.
    */
   protected String getNewEndpoint(final GeneratedHttpRequest gRequest, final Object input) {
      SingleResourceTransportDto dto = BindToPath.checkValidInput(input);
      return BindToPath.getLinkToUse(gRequest, dto).getHref();
   }
View Full Code Here

   protected void assertPayloadEquals(final HttpRequest request, final String toMatch,
         final Class<? extends SingleResourceTransportDto> entityClass, final String contentType,
         final boolean contentMD5) throws IOException {
      // Make sure we don't have formatting issues
      SingleResourceTransportDto entity = xml.fromXML(toMatch, entityClass);
      String stringToMatch = xml.toXML(entity, entityClass);

      super.assertPayloadEquals(request, stringToMatch, contentType, contentMD5);
   }
View Full Code Here

    */
   public static void assertPayloadEquals(final Payload payload, final String expected,
         final Class<? extends SingleResourceTransportDto> entityClass) throws IOException {
      // Serialize and deserialize to avoid formatting issues
      XMLParser xml = new JAXBParser("false");
      SingleResourceTransportDto entity = xml.fromXML(expected, entityClass);
      String toMatch = xml.toXML(entity, entityClass);

      assertEquals(payload.getRawContent(), toMatch);
   }
View Full Code Here

    * @param input
    *           The input parameter.
    * @return The new endpoint to use.
    */
   protected String getNewEndpoint(final GeneratedHttpRequest gRequest, final Object input) {
      SingleResourceTransportDto dto = BindToPath.checkValidInput(input);
      return BindToPath.getLinkToUse(gRequest, dto).getHref();
   }
View Full Code Here

    * @param input
    *           The input parameter.
    * @return The new endpoint to use.
    */
   protected String getNewEndpoint(final GeneratedHttpRequest gRequest, final Object input) {
      SingleResourceTransportDto dto = checkValidInput(input);
      return getLinkToUse(gRequest, dto).getHref();
   }
View Full Code Here

   protected void assertPayloadEquals(final HttpRequest request, final String toMatch,
         final Class<? extends SingleResourceTransportDto> entityClass, final String contentType,
         final boolean contentMD5) throws IOException {
      // Make sure we don't have formatting issues
      SingleResourceTransportDto entity = xml.fromXML(toMatch, entityClass);
      String stringToMatch = xml.toXML(entity, entityClass);

      super.assertPayloadEquals(request, stringToMatch, contentType, contentMD5);
   }
View Full Code Here

TOP

Related Classes of com.abiquo.model.transport.SingleResourceTransportDto

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.