Package org.eclipse.webdav.http.client

Examples of org.eclipse.webdav.http.client.Request


    public IResponse merge(ILocator locator, IContext userContext, Document document) throws IOException {
        Assert.isNotNull(locator);
        Assert.isNotNull(userContext);
        Assert.isNotNull(document);
        IContext context = newContext(userContext, locator);
        Request request = newRequest(locator, context, document, "MERGE"); //$NON-NLS-1$
        return httpClient.invoke(request);
    }
View Full Code Here


     */
    public IResponse mkactivity(ILocator locator, IContext userContext, Document document) throws IOException {
        Assert.isNotNull(locator);
        Assert.isNotNull(userContext);
        IContext context = newContext(userContext, locator);
        Request request = newRequest(locator, context, document, "MKACTIVITY"); //$NON-NLS-1$
        return httpClient.invoke(request);
    }
View Full Code Here

     */
    public IResponse mkcol(ILocator locator, IContext userContext, Document document) throws IOException {
        Assert.isNotNull(locator);
        Assert.isNotNull(userContext);
        IContext context = newContext(userContext, locator);
        Request request = newRequest(locator, context, document, "MKCOL"); //$NON-NLS-1$
        return httpClient.invoke(request);
    }
View Full Code Here

     */
    public IResponse mkworkspace(ILocator locator, IContext userContext, Document document) throws IOException {
        Assert.isNotNull(locator);
        Assert.isNotNull(userContext);
        IContext context = newContext(userContext, locator);
        Request request = newRequest(locator, context, document, "MKWORKSPACE"); //$NON-NLS-1$
        return httpClient.invoke(request);
    }
View Full Code Here

        Assert.isNotNull(source);
        Assert.isNotNull(destination);
        Assert.isNotNull(userContext);
        IContext context = newContext(userContext, source);
        context.setDestination(URLEncoder.encode(destination.getResourceURL()));
        Request request = newRequest(source, context, document, "MOVE"); //$NON-NLS-1$
        return httpClient.invoke(request);
    }
View Full Code Here

        Request request = newRequest(source, context, document, "MOVE"); //$NON-NLS-1$
        return httpClient.invoke(request);
    }

    private Request newRequest(ILocator locator, IContext context, InputStream is, String methodName) throws IOException {
        return new Request(methodName, URLEncoder.encode(new URL(locator.getResourceURL())), context, is);
    }
View Full Code Here

    private Request newRequest(ILocator locator, IContext context, InputStream is, String methodName) throws IOException {
        return new Request(methodName, URLEncoder.encode(new URL(locator.getResourceURL())), context, is);
    }

    private Request newRequest(ILocator locator, IContext context, String methodName) throws IOException {
        return new Request(methodName, URLEncoder.encode(new URL(locator.getResourceURL())), context);
    }
View Full Code Here

    }

    private Request newRequest(ILocator locator, IContext context, Document document, String methodName) throws IOException {
        context.setContentType("text/xml; charset=\"UTF8\""); //$NON-NLS-1$
        if (document == null)
            return new Request(methodName, URLEncoder.encode(new URL(locator.getResourceURL())), context);
        RequestBodyWriter writer = new RequestBodyWriter(document, "UTF8"); //$NON-NLS-1$
        return new Request(methodName, URLEncoder.encode(new URL(locator.getResourceURL())), context, writer);
    }
View Full Code Here

     */
    public IResponse options(ILocator locator, IContext userContext) throws IOException {
        Assert.isNotNull(locator);
        Assert.isNotNull(userContext);
        IContext context = newContext(userContext, locator);
        Request request = newRequest(locator, context, "OPTIONS"); //$NON-NLS-1$
        return httpClient.invoke(request);
    }
View Full Code Here

    public IResponse post(ILocator locator, IContext userContext, InputStream is) throws IOException {
        Assert.isNotNull(locator);
        Assert.isNotNull(userContext);
        Assert.isNotNull(is);
        IContext context = newContext(userContext, locator);
        Request request = newRequest(locator, context, is, "POST"); //$NON-NLS-1$
        return httpClient.invoke(request);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.webdav.http.client.Request

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.