FastHttpConnector

public class FastHttpConnector extends HttpConnector

Creation Date: 10/10/2006 Modified Date: 17/06/2009

Author:Twinsen, Philip

Constructors

FastHttpConnector

public FastHttpConnector(Object destUrl)

Creates a new instance of HttpConnector.

Parameters:
  • destUrl – the destination URL, either in String or URL format.
Throws:
  • MalformedURLException – if the URL is malformed.

Methods

getResponseCode

public int getResponseCode()

Sends an HTTP/S request using the given HTTP connection.

Parameters:
  • request – the HTTP request content or null for a simple get request.
  • internet – headers
Throws:
Returns:

an input stream for reading the reply from the host.

getResponseContentStream

public InputStream getResponseContentStream()

getResponseHeaders

public InternetHeaders getResponseHeaders()

send

public HttpURLConnection send(InputStream request, InternetHeaders headers)