de.fhhannover.inform.trust.ifmapj.channel
Interface CommunicationHandler


public interface CommunicationHandler


Method Summary
 void closeTcpConnection()
          Closes the underlying TCP connection.
 InputStream doRequest(InputStream is)
          Use HTTP post to send the request.
 void setGzip(boolean gzip)
          Set to true if gzip should be used for the communication.
 boolean usesGzip()
           
 

Method Detail

doRequest

InputStream doRequest(InputStream is)
                      throws CommunicationException
Use HTTP post to send the request.

Parameters:
is - request's HTTP body
Returns:
response's HTTP body
Throws:
IOException
ProtocolException
CommunicationException

setGzip

void setGzip(boolean gzip)
Set to true if gzip should be used for the communication.

Parameters:
gzip -

usesGzip

boolean usesGzip()
Returns:
whether requests are gzipped.

closeTcpConnection

void closeTcpConnection()
                        throws CommunicationException
Closes the underlying TCP connection.

Throws:
CommunicationException


Copyright © 2012 Trust@FHH. All Rights Reserved.