All Downloads are FREE. Search and download functionalities are using the official Maven repository.

oauth.signpost.basic.UrlStringRequestAdapter Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package oauth.signpost.basic;

import java.io.IOException;
import java.io.InputStream;
import java.util.Collections;
import java.util.Map;

import oauth.signpost.http.HttpRequest;

public class UrlStringRequestAdapter implements HttpRequest {

    private String url;

    public UrlStringRequestAdapter(String url) {
        this.url = url;
    }

    public String getMethod() {
        return "GET";
    }

    public String getRequestUrl() {
        return url;
    }

    public void setRequestUrl(String url) {
        this.url = url;
    }

    public void setHeader(String name, String value) {
    }

    public String getHeader(String name) {
        return null;
    }

    public Map getAllHeaders() {
        return Collections.emptyMap();
    }

    public InputStream getMessagePayload() throws IOException {
        return null;
    }

    public String getContentType() {
        return null;
    }

    public Object unwrap() {
        return url;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy