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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Request
public Request(NameValuePair[] headers,
java.net.URL url,
Request.Method method,
NameValuePair[] parameters)
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.