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

org.swordapp.client.EmptyRequestEntity Maven / Gradle / Ivy

The newest version!
package org.swordapp.client;

import org.apache.commons.httpclient.methods.RequestEntity;

import java.io.IOException;
import java.io.OutputStream;

public class EmptyRequestEntity implements RequestEntity
{
	public boolean isRepeatable()
	{
		return true;
	}

	public void writeRequest(OutputStream outputStream) throws IOException
	{
		// Does nothing
	}

	public long getContentLength()
	{
		return 0;
	}

	public String getContentType()
	{
		return null;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy