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

com.daioware.net.http.request.HttpGetRequest Maven / Gradle / Ivy

package com.daioware.net.http.request;

import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;

public class HttpGetRequest extends HttpRequest{

	public HttpGetRequest(String url,String encoding) throws MalformedURLException {
		this(new URL(url),encoding);
	}

	public HttpGetRequest(URL url, String encoding) {
		super(url,encoding);
	}

	public HttpGetRequest(String url) throws MalformedURLException {
		this(new URL(url));
	}

	public HttpGetRequest(URL url) throws MalformedURLException {
		super(url);
	}

	@Override
	public int readBody(byte[] bytes, int offset, int length) {
		return 0;
	}

	@Override
	public boolean startReadingBody() throws IOException {
		return false;
	}

	@Override
	public void stopReadingBody() throws IOException {
		
	}

	@Override
	public long getContentLength() {
		return 0;
	}

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy