Examples of replacePath()


Examples of org.apache.cxf.jaxrs.client.WebClient.replacePath()

            // We use version 2 of the REST API, that first appeared in JIRA 5
            // Check if version 2 of the REST API is supported
            // http://docs.atlassian.com/jira/REST/5.0/
            // Note that serverInfo can always be accessed without authentication
            client.replacePath( "/rest/api/2/serverInfo" );
            client.accept( MediaType.APPLICATION_JSON );
            Response siResponse = client.get();
            if ( siResponse.getStatus() != Response.Status.OK.getStatusCode() )
            {
                throw new NoRest(
View Full Code Here

Examples of org.jboss.resteasy.specimpl.ResteasyUriBuilder.replacePath()

   protected ResteasyUriBuilder getUriBuilder(Class<? extends Object> clazz)
   {
      String uriTemplate = clazz.getAnnotation(URITemplate.class).value();
      ResteasyUriBuilder uriBuilderImpl = new ResteasyUriBuilder();
      uriBuilderImpl.replacePath(uriTemplate);
      return uriBuilderImpl;
   }
}
View Full Code Here

Examples of org.jboss.resteasy.specimpl.UriBuilderImpl.replacePath()

   protected UriBuilderImpl getUriBuilder(Class<? extends Object> clazz)
   {
      String uriTemplate = clazz.getAnnotation(URITemplate.class).value();
      UriBuilderImpl uriBuilderImpl = new UriBuilderImpl();
      uriBuilderImpl.replacePath(uriTemplate);
      return uriBuilderImpl;
   }
}
View Full Code Here

Examples of org.springframework.web.servlet.support.ServletUriComponentsBuilder.replacePath()

    }

    if (requestMappingPatterns.contains(pattern.substring(0, pattern.length() - 1))) {
      ServletUriComponentsBuilder builder = ServletUriComponentsBuilder.fromRequest(request);
      String path = builder.build().getPath();
      builder.replacePath(path.substring(0, path.length() - 1));
      String location = builder.build().toString();

      response.setStatus(HttpStatus.MOVED_PERMANENTLY.value());
      response.setHeader("Location", location);
      return false;
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.