ca.intelliware.amakihi.util.http
Class Request

java.lang.Object
  |
  +--ca.intelliware.amakihi.util.http.Request
Direct Known Subclasses:
GetRequest, MultipartPostRequest, SimplePostRequest

public abstract class Request
extends java.lang.Object


Inner Class Summary
static class Request.Method
           
 
Field Summary
static Request.Method DELETE
           
static Request.Method GET
           
static Request.Method HEAD
           
protected  NameValuePair[] headers
           
protected  Request.Method method
           
static Request.Method OPTIONS
           
protected  NameValuePair[] parameters
           
static Request.Method POST
           
static Request.Method PUT
           
static Request.Method TRACE
           
protected  java.net.URL url
           
 
Constructor Summary
Request(NameValuePair[] headers, java.net.URL url, Request.Method method, NameValuePair[] parameters)
           
 
Method Summary
protected  NameValuePair[] createCopyOfArray(NameValuePair[] pairs)
           
protected  java.lang.String createEncodedParameter(java.lang.String name, java.lang.String value)
           
 NameValuePair[] getHeaders()
          Gets the headers
 Request.Method getMethod()
          Gets the method
 NameValuePair[] getParameters()
          Gets the parameters
 java.lang.String getQueryString()
           
 java.net.URL getUrl()
          Gets the url
protected abstract  void writeTo(java.io.OutputStream output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELETE

public static Request.Method DELETE

GET

public static Request.Method GET

HEAD

public static Request.Method HEAD

OPTIONS

public static Request.Method OPTIONS

POST

public static Request.Method POST

PUT

public static Request.Method PUT

TRACE

public static Request.Method TRACE

method

protected Request.Method method

parameters

protected NameValuePair[] parameters

headers

protected NameValuePair[] headers

url

protected java.net.URL url
Constructor Detail

Request

public Request(NameValuePair[] headers,
               java.net.URL url,
               Request.Method method,
               NameValuePair[] parameters)
Method Detail

getMethod

public Request.Method getMethod()
Gets the method
Returns:
Returns a Method

getParameters

public NameValuePair[] getParameters()
Gets the parameters
Returns:
Returns a NameValuePair[]

createCopyOfArray

protected NameValuePair[] createCopyOfArray(NameValuePair[] pairs)

getHeaders

public NameValuePair[] getHeaders()
Gets the headers
Returns:
Returns a NameValuePair[]

getUrl

public java.net.URL getUrl()
Gets the url
Returns:
Returns a URL

createEncodedParameter

protected java.lang.String createEncodedParameter(java.lang.String name,
                                                  java.lang.String value)

getQueryString

public java.lang.String getQueryString()

writeTo

protected abstract void writeTo(java.io.OutputStream output)
                         throws java.io.IOException


Copyright 2002 Intelliware Development. All Rights Reserved.