|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.paris.lutece.util.httpaccess.HttpAccess
public class HttpAccess
Http net Object Accessor
| Constructor Summary | |
|---|---|
HttpAccess()
|
|
| Method Summary | |
|---|---|
java.lang.String |
doGet(java.lang.String strUrl)
Send a GET HTTP request to an Url and return the response content. |
java.lang.String |
doGet(java.lang.String strUrl,
fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator,
java.util.List<java.lang.String> listElements)
Send a GET HTTP request to an Url and return the response content. |
java.lang.String |
doPost(java.lang.String strUrl,
java.util.Map<java.lang.String,java.lang.String> params)
Send a POST HTTP request to an url and return the response content |
java.lang.String |
doPost(java.lang.String strUrl,
java.util.Map<java.lang.String,java.lang.String> params,
fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator,
java.util.List<java.lang.String> listElements)
Send a POST HTTP request to an url and return the response content |
java.lang.String |
doPostMultiValues(java.lang.String strUrl,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> params)
Send a POST HTTP request to an url and return the response content |
java.lang.String |
doPostMultiValues(java.lang.String strUrl,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> params,
fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator,
java.util.List<java.lang.String> listElements)
Send a POST HTTP request to an url and return the response content |
void |
downloadFile(java.lang.String strUrl,
java.lang.String strFilePath)
Send a GET HTTP request to an Url and return the response content. |
java.lang.String |
getFileName(java.lang.String strUrl)
Send a GET HTTP request to an Url and return the response content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpAccess()
| Method Detail |
|---|
public java.lang.String doGet(java.lang.String strUrl)
throws HttpAccessException
strUrl - The Url to access
HttpAccessException - if there is a problem to access to the given Url
public java.lang.String doGet(java.lang.String strUrl,
fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator,
java.util.List<java.lang.String> listElements)
throws HttpAccessException
strUrl - The Url to accessauthenticator - The RequestAuthenticatorlistElements - to include in the signature
HttpAccessException - if there is a problem to access to the given Url
public java.lang.String doPost(java.lang.String strUrl,
java.util.Map<java.lang.String,java.lang.String> params)
throws HttpAccessException
strUrl - the url to accessparams - the list of parameters to post
HttpAccessException - if there is a problem to access to the given Url
public java.lang.String doPost(java.lang.String strUrl,
java.util.Map<java.lang.String,java.lang.String> params,
fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator,
java.util.List<java.lang.String> listElements)
throws HttpAccessException
strUrl - the url to accessparams - the list of parameters to postauthenticator - The RequestAuthenticatorlistElements - to include in the signature
HttpAccessException - if there is a problem to access to the given Url
public void downloadFile(java.lang.String strUrl,
java.lang.String strFilePath)
throws HttpAccessException
strUrl - The Url to accessstrFilePath - the file path
HttpAccessException - if there is a problem to access to the given Url
public java.lang.String getFileName(java.lang.String strUrl)
throws HttpAccessException
strUrl - The Url to accessstrDirectoryPath - the directory path
HttpAccessException - if there is a problem to access to the given Url
public java.lang.String doPostMultiValues(java.lang.String strUrl,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> params)
throws HttpAccessException
strUrl - the url to accessparams - the list of parameters to post
HttpAccessException - if there is a problem to access to the given Url
public java.lang.String doPostMultiValues(java.lang.String strUrl,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> params,
fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator,
java.util.List<java.lang.String> listElements)
throws HttpAccessException
strUrl - the url to accessparams - the list of parameters to postauthenticator - The RequestAuthenticatorlistElements - to include in the signature
HttpAccessException - if there is a problem to access to the given Url
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||