| Constructor and Description |
|---|
RequestImpl() |
RequestImpl(ParameterPair[] postAtributes,
IHeader[] headers,
String url,
String type,
String authType) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public RequestImpl()
public RequestImpl(ParameterPair[] postAtributes, IHeader[] headers, String url, String type, String authType)
state - postAtributes - headers - url - type - authType - public void setHeaders(IHeader[] h)
RequestsetHeaders 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()
RequestgetHeaders in interface Requestpublic void setUrl(String url)
Requestpublic String getUrl()
Requestpublic void setType(String type)
Requestpublic String getType()
Requestpublic IHeader createHeader(String name, String value)
RequestcreateHeader in interface Requestpublic void setParameters(ParameterPair[] sPostAttributes)
RequestsetParameters in interface Requestpublic ParameterPair[] getParameters()
RequestgetParameters in interface Requestpublic void setAuthType(String authType)
RequestsetAuthType in interface RequestauthType - the authentication type as a String to identify the type of authentication requestpublic String getAuthType()
RequestgetAuthType in interface RequestCopyright © 2016 Jasig. All Rights Reserved.