pl.mn.communicator.packet.http
Class HttpRequest

java.lang.Object
  extended by pl.mn.communicator.packet.http.HttpRequest
Direct Known Subclasses:
AbstractTokenRequest, GGTokenRequest

public abstract class HttpRequest
extends java.lang.Object

Created on 2005-01-27

Version:
$Id: HttpRequest.java,v 1.1 2005/11/05 23:34:53 winnetou25 Exp $
Author:
Mateusz Szczap

Field Summary
protected  IGGConfiguration m_ggconfiguration
           
protected  java.net.HttpURLConnection m_huc
           
static java.lang.String WINDOW_ENCODING
           
 
Constructor Summary
protected HttpRequest(IGGConfiguration configuration)
           
 
Method Summary
 java.net.HttpURLConnection connect()
           
 java.net.HttpURLConnection disconnect()
           
protected abstract  java.lang.String getRequestBody()
           
abstract  HttpResponse getResponse()
           
protected abstract  java.lang.String getURL()
           
 java.net.HttpURLConnection sendRequest()
           
protected abstract  boolean wannaWrite()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WINDOW_ENCODING

public static final java.lang.String WINDOW_ENCODING
See Also:
Constant Field Values

m_ggconfiguration

protected final IGGConfiguration m_ggconfiguration

m_huc

protected final java.net.HttpURLConnection m_huc
Constructor Detail

HttpRequest

protected HttpRequest(IGGConfiguration configuration)
               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

connect

public java.net.HttpURLConnection connect()
                                   throws java.io.IOException
Throws:
java.io.IOException

sendRequest

public java.net.HttpURLConnection sendRequest()
                                       throws java.io.IOException
Throws:
java.io.IOException

disconnect

public java.net.HttpURLConnection disconnect()

getResponse

public abstract HttpResponse getResponse()
                                  throws java.io.IOException
Throws:
java.io.IOException

getURL

protected abstract java.lang.String getURL()

getRequestBody

protected abstract java.lang.String getRequestBody()
                                            throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

wannaWrite

protected abstract boolean wannaWrite()


Copyright 2004-2004-2005 SourceForge.net. All Rights Reserved.