|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.my.webproxy.beans.http.RequestImpl
public class RequestImpl
This class is the implementation of the methods defined in the (@link edu.wisc.my.webproxy.beans.http.Request) interface
| Constructor Summary | |
|---|---|
RequestImpl()
|
|
RequestImpl(ParameterPair[] postAtributes,
IHeader[] headers,
String url,
String type,
String authType)
|
|
| Method Summary | |
|---|---|
IHeader |
createHeader(String name,
String value)
Creates and return an empty Header |
String |
getAuthType()
Retrives the type(Basic, Form, NTML) of the authentication that was set on this object |
IHeader[] |
getHeaders()
Retrieves an array of Headers that this object contains. |
ParameterPair[] |
getParameters()
Retrieves all the post parameters on this object contained in map to make a post request |
String |
getType()
Retrieves the type of the request that this object contains |
String |
getUrl()
Retrieves the base url as a String that this object contains |
void |
setAuthType(String authType)
There are a few differnt type of HTTP authentications, such as Basic, Form-based, NTLM etc. |
void |
setHeaders(IHeader[] h)
Sets the Static Headers to this object |
void |
setParameters(ParameterPair[] sPostAttributes)
Sets all the post parameters on this object contained in map to make a post request |
void |
setType(String type)
Sets the type (GET, POST, HEAD) of the request that need to made to the remote server It may not be null |
void |
setUrl(String url)
Sets the base url that is needed to make the request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestImpl()
public RequestImpl(ParameterPair[] postAtributes,
IHeader[] headers,
String url,
String type,
String authType)
state - postAtributes - headers - url - type - authType - | Method Detail |
|---|
public void setHeaders(IHeader[] h)
Request
setHeaders in interface Requesth - the Headers to use for the requestedu.wisc.my.webproxy.beans.http.Request#addHeaders(edu.wisc.my.webproxy.beans.http.IHeader[])public IHeader[] getHeaders()
Request
getHeaders in interface Requestpublic void setUrl(String url)
Request
setUrl in interface Requesturl - the url as a string that is needed to make request to the remote server.public String getUrl()
Request
getUrl in interface Requestpublic void setType(String type)
Request
setType in interface Requesttype - the request type as a String that need to be made to the remote serverpublic String getType()
Request
getType in interface Request
public IHeader createHeader(String name,
String value)
Request
createHeader in interface Requestpublic void setParameters(ParameterPair[] sPostAttributes)
Request
setParameters in interface Requestpublic ParameterPair[] getParameters()
Request
getParameters in interface Requestpublic void setAuthType(String authType)
Request
setAuthType in interface RequestauthType - the authentication type as a String to identify the type of authentication requestpublic String getAuthType()
Request
getAuthType in interface Request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||