Examples of UriBuilderImpl


Examples of com.sun.jersey.api.uri.UriBuilderImpl

        return new ResponseBuilderImpl();
    }

    @Override
    public UriBuilder createUriBuilder() {
        return new UriBuilderImpl();
    }
View Full Code Here

Examples of org.apache.cxf.jaxrs.impl.UriBuilderImpl

        state.setBaseURI(uri);
        resetCurrentBuilder(uri);
    }
   
    protected void resetCurrentBuilder(URI uri) {
        state.setCurrentBuilder(new UriBuilderImpl(uri));
    }
View Full Code Here

Examples of org.apache.cxf.jaxrs.impl.UriBuilderImpl

        state.setBaseURI(uri);
        resetCurrentBuilder(uri);
    }
   
    protected void resetCurrentBuilder(URI uri) {
        state.setCurrentBuilder(new UriBuilderImpl(uri));
    }
View Full Code Here

Examples of org.apache.cxf.jaxrs.impl.UriBuilderImpl

    protected void resetBaseAddress(URI uri) {
        state.setBaseURI(uri);
    }
   
    protected void resetCurrentBuilder(URI uri) {
        state.setCurrentBuilder(new UriBuilderImpl(uri));
    }
View Full Code Here

Examples of org.apache.cxf.jaxrs.impl.UriBuilderImpl

   
    private URI calculateNewRequestURI(URI newBaseURI, URI requestURI, boolean proxy) {
        String baseURIPath = newBaseURI.getRawPath();
        String reqURIPath = requestURI.getRawPath();
       
        UriBuilder builder = new UriBuilderImpl().uri(newBaseURI);
        String basePath = reqURIPath.startsWith(baseURIPath) ? baseURIPath : getBaseURI().getRawPath();
        builder.path(reqURIPath.equals(basePath) ? "" : reqURIPath.substring(basePath.length()));
       
        String newQuery = newBaseURI.getRawQuery();
        if (newQuery == null) {
View Full Code Here

Examples of org.apache.cxf.jaxrs.impl.UriBuilderImpl

     * @param path new relative path segment
     * @param values template variable values
     * @return updated WebClient
     */
    public WebClient path(String path, Object... values) {
        URI u = new UriBuilderImpl().uri(URI.create("http://tempuri")).path(path).buildFromEncoded(values);
        getState().setTemplates(getTemplateParametersMap(new URITemplate(path), Arrays.asList(values)));
        return path(u.getRawPath());
    }
View Full Code Here

Examples of org.apache.cxf.jaxrs.impl.UriBuilderImpl

            return URI.create(baseAddress);
        } catch (RuntimeException ex) {
            // no need to check "https" scheme or indeed ':'
            // as the relative address will not work as the base address
            if (baseAddress.startsWith(HTTP_SCHEME)) {
                return new UriBuilderImpl().uriAsTemplate(baseAddress).build();
            } else {
                throw ex;
            }
        }
    }
View Full Code Here

Examples of org.apache.cxf.jaxrs.impl.UriBuilderImpl

        resetCurrentUri();
    }
   
    public LocalClientState(URI baseURI, URI currentURI) {
        this.baseURI = baseURI;
        this.currentBuilder = new UriBuilderImpl().uri(currentURI);
    }
View Full Code Here

Examples of org.apache.cxf.jaxrs.impl.UriBuilderImpl

        this.currentBuilder = cs.currentBuilder != null ? cs.currentBuilder.clone() : null;
    }
   
    private void resetCurrentUri() {
        if (isSupportedScheme(baseURI)) {
            this.currentBuilder = new UriBuilderImpl().uri(baseURI);
        } else {
            this.currentBuilder = new UriBuilderImpl().uri("/");
        }
    }
View Full Code Here

Examples of org.apache.cxf.jaxrs.impl.UriBuilderImpl

    }
   
    public void reset() {
        requestHeaders.clear();
        response = null;
        currentBuilder = new UriBuilderImpl().uri(baseURI);
        templates = null;
    }
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.