Examples of UriBuilderImpl


Examples of org.jboss.resteasy.specimpl.UriBuilderImpl

      {
         Path path = method.getAnnotation(Path.class);
         Set<String> httpMethods = IsHttpMethod.getHttpMethods(method);
         if (path == null && httpMethods == null) continue;

         UriBuilderImpl builder = new UriBuilderImpl();
         if (base != null) builder.path(base);
         if (clazz.isAnnotationPresent(Path.class)) builder.path(clazz);
         if (path != null) builder.path(method);
         String pathExpression = builder.getPath();
         if (pathExpression == null) pathExpression = "";

         ResourceInvoker invoker = rootSegment.removePath(pathExpression, method);
         if (invoker != null)
         {
View Full Code Here

Examples of org.resteasy.specimpl.UriBuilderImpl

                    URI absolutePath;
                    try
                    {
                        URL absolute = new URL(request.getRequestURL().toString());

                        UriBuilderImpl builder = new UriBuilderImpl();
                        builder.scheme(absolute.getProtocol());
                        builder.host(absolute.getHost());
                        builder.port(absolute.getPort());
                        builder.path(absolute.getPath());
                        builder.replaceQueryParams(absolute.getQuery());
                        absolutePath = builder.build();
                    }
                    catch (MalformedURLException e)
                    {
                        throw new RuntimeException(e);
                    }
View Full Code Here

Examples of org.restlet.ext.jaxrs.internal.core.UriBuilderImpl

    /**
     * @see javax.ws.rs.ext.RuntimeDelegate#createUriBuilder()
     */
    @Override
    public UriBuilder createUriBuilder() {
        return new UriBuilderImpl();
    }
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.