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

com.att.aft.dme2.handler.AsyncResponseHandlerIntf Maven / Gradle / Ivy

package com.att.aft.dme2.handler;

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

/**
 * Interface for async reply handlers.
 */
public interface AsyncResponseHandlerIntf {

	/**
	 * Called whenever an exception occurs during calls to the server.
	 * 
	 * @param requestHeaders
	 *            the request headers
	 * @param e
	 *            the e
	 */
	public void handleException( Map requestHeaders, Throwable e );

	/**
	 * Called when a reply is returned from the server. This can be any reply,
	 * not only successful replies.
	 * 
	 * @param responseCode
	 *            the response code
	 * @param responseMessage
	 *            the response message
	 * @param in
	 *            the in
	 * @param requestHeaders
	 *            the request headers
	 * @param responseHeaders
	 *            the response headers
	 */
	public void handleReply( int responseCode, String responseMessage,
                           InputStream in, Map requestHeaders,
                           Map responseHeaders );

	/*
	 * Called to get the response from the handler
	 */
	public Object getResponse( long timeoutMs ) throws Exception;
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy