Package com.jayway.jaxrs.hateoas.web

Examples of com.jayway.jaxrs.hateoas.web.RequestContext


            log.debug("request.getBaseUri : " + request.getBaseUri());
        }

        RequestContext.clearRequestContext();

        RequestContext ctx = new RequestContext(UriBuilder.fromUri(request.getBaseUri()), request.getHeaderValue(RequestContext.HATEOAS_OPTIONS_HEADER));

        RequestContext.setRequestContext(ctx);

        return request;
    }
View Full Code Here


            log.debug("request.getBaseUri : " + request.getBaseUri());
        }

        RequestContext.clearRequestContext();

        RequestContext ctx = new RequestContext(UriBuilder.fromUri(request.getBaseUri()), request.getHeaderValue(RequestContext.HATEOAS_OPTIONS_HEADER));

        RequestContext.setRequestContext(ctx);

        return request;
    }
View Full Code Here

  private DefaultHateoasLink tested;

  @Before
  public void prepareTestedInstance() throws IllegalArgumentException,
      URISyntaxException {
    RequestContext requestContext = new RequestContext(
        UriBuilder.fromUri(new URI("http://www.example.com/api")), null);
    RequestContext.setRequestContext(requestContext);
    LinkableInfo linkableInfo = new LinkableInfo("test.dummy",
        "/dummy/{id1}/{id2}", "POST", DEFAULT_MEDIA_TYPE,
        DEFAULT_MEDIA_TYPE, "test label", "test description",
View Full Code Here

TOP

Related Classes of com.jayway.jaxrs.hateoas.web.RequestContext

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.