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

io.continual.http.service.framework.inspection.CHttpObserver Maven / Gradle / Ivy

The newest version!
package io.continual.http.service.framework.inspection;

import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.List;
import java.util.Map;

public interface CHttpObserver
{
	CHttpObserver method ( String method );

	CHttpObserver onUrl ( String url );

	CHttpObserver queryString ( String qs );

	CHttpObserver contentTypeRequest ( String type );

	CHttpObserver contentLengthRequest ( int length );

	InputStream wrap ( InputStream inputStream );

	interface HeaderLister
	{
		Map> getHeaders ();
	}
	CHttpObserver withHeaders ( HeaderLister hl );
	
	void closeTrx ();

	CHttpObserver replyWith ( int status, String msg );

	CHttpObserver replyWith ( int code );

	CHttpObserver replyHeader ( String string, String mimeType );

	PrintWriter wrap ( PrintWriter writer );

	OutputStream wrap ( OutputStream outputStream );
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy