public interface Request
| 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[] attributes)
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.
|
void setHeaders(IHeader[] h)
h - the Headers to use for the requestIHeader[] getHeaders()
void setUrl(String url)
url - the url as a string that is needed to make request to the remote server.String getUrl()
void setType(String type)
type - the request type as a String that need to be made to the remote serverString getType()
IHeader createHeader(String name, String value)
void setParameters(ParameterPair[] attributes)
postParameters - a Map containing all the parameters to make a post request.ParameterPair[] getParameters()
void setAuthType(String authType)
authType - the authentication type as a String to identify the type of authentication requestString getAuthType()
Copyright © 2016 Jasig. All Rights Reserved.