Fork me on GitHub

Library HttpAccess

Introduction

This library provides simplified methods to perform HTTP requests (GET, POST, ...) and to pass through proxies notably based on NTLM authentications.

Plugins should be based primarily on the library so to pool configuration.

Configuration

Configuration is defined in the WEB-INF/conf/plugins/httpaccess.properties.

################################################################
## Proxy settings
httpAccess.proxyHost=
httpAccess.proxyPort=
httpAccess.proxyUserName=
httpAccess.proxyPassword=
# computer name
# httpaccess.hostName=
# domain name
# httpAccess.domainName=
# httpaccess.realm=
httpAccess.noProxyFor=
# Content charset - optionnal
httpAccess.contentCharset=
# Element charset - optionnal
httpAccess.elementCharset=
#Connexion Timeout -Times client tries to connect to the server in milliseconds - optionnal
httpAccess.connexionTimeout=
#Socket Timeout -Times which the client wait after establish connexion for response in milliseconds - optional
httpAccess.socketTimeout=
#Http responses code authorized (200->OK,201 ->Created,...)
httpAccess.responsesCodeAuthorized=200,201,202,203,204,205,206,207,210