| java.lang.Object com.liferay.util.Http
Method Summary | |
public static byte[] | URLtoByteArray(String location) | public static byte[] | URLtoByteArray(String location, Cookie[] cookies) | public static byte[] | URLtoByteArray(String location, boolean post) | public static byte[] | URLtoByteArray(String location, Cookie[] cookies, boolean post) | public static byte[] | URLtoByteArray(String location, Cookie[] cookies, Map parts, boolean post) | public static String | URLtoString(String location) | public static String | URLtoString(String location, Cookie[] cookies) | public static String | URLtoString(String location, boolean post) | public static String | URLtoString(String location, Cookie[] cookies, boolean post) | public static String | URLtoString(String location, Cookie[] cookies, Map parts, boolean post) | public static String | URLtoString(URL url) This method only uses the default Commons HttpClient implementation when
the URL object represents a HTTP resource. | public static String | addParameter(String url, String name, boolean value) | public static String | addParameter(String url, String name, double value) | public static String | addParameter(String url, String name, int value) | public static String | addParameter(String url, String name, long value) | public static String | addParameter(String url, String name, short value) | public static String | addParameter(String url, String name, String value) | public static String | decodeURL(String url) | public static String | encodeURL(String url) | public static HttpClient | getClient(HostConfiguration hostConfig) | public static String | getCompleteURL(HttpServletRequest req) | public static HostConfiguration | getHostConfig(String location) | public static String | getParameter(String url, String name) | public static String | getParameter(String url, String name, boolean escaped) | public static Map | getParameterMap(String queryString) | public static String | getProtocol(boolean secure) | public static String | getProtocol(HttpServletRequest req) | public static String | getProtocol(ActionRequest req) | public static String | getProtocol(RenderRequest req) | public static String | getQueryString(String url) | public static String | getRequestURL(HttpServletRequest req) | public static boolean | hasProxyConfig() | public static boolean | isNonProxyHost(String host) | public static boolean | isProxyHost(String host) | public static String | parameterMapToString(Map parameterMap) | public static String | parameterMapToString(Map parameterMap, boolean addQuestion) | public static String | protocolize(String url, boolean secure) | public static String | protocolize(String url, HttpServletRequest req) | public static String | protocolize(String url, ActionRequest req) | public static String | protocolize(String url, RenderRequest req) | public static void | proxifyState(HttpState state, HostConfiguration hostConfig) | public static String | removeParameter(String url, String name) | public static String | removeProtocol(String url) | public static void | submit(String location) | public static void | submit(String location, Cookie[] cookies) | public static void | submit(String location, boolean post) | public static void | submit(String location, Cookie[] cookies, boolean post) | public static void | submit(String location, Cookie[] cookies, Map parts, boolean post) |
HTTPS_PORT | final public static int HTTPS_PORT(Code) | | |
HTTPS_WITH_SLASH | final public static String HTTPS_WITH_SLASH(Code) | | |
HTTP_PORT | final public static int HTTP_PORT(Code) | | |
HTTP_WITH_SLASH | final public static String HTTP_WITH_SLASH(Code) | | |
LIFERAY_PROXY_HOST | final public static String LIFERAY_PROXY_HOST(Code) | | |
LIFERAY_PROXY_PORT | final public static int LIFERAY_PROXY_PORT(Code) | | |
NON_PROXY_HOSTS | final public static String NON_PROXY_HOSTS(Code) | | |
PROXY_AUTH_TYPE | final public static String PROXY_AUTH_TYPE(Code) | | |
PROXY_NTLM_DOMAIN | final public static String PROXY_NTLM_DOMAIN(Code) | | |
PROXY_NTLM_HOST | final public static String PROXY_NTLM_HOST(Code) | | |
PROXY_PASSWORD | final public static String PROXY_PASSWORD(Code) | | |
PROXY_PORT | final public static int PROXY_PORT(Code) | | |
PROXY_USERNAME | final public static String PROXY_USERNAME(Code) | | |
TIMEOUT | final public static int TIMEOUT(Code) | | |
URLtoByteArray | public static byte[] URLtoByteArray(String location, Cookie[] cookies, boolean post) throws IOException(Code) | | |
URLtoByteArray | public static byte[] URLtoByteArray(String location, Cookie[] cookies, Map parts, boolean post) throws IOException(Code) | | |
URLtoString | public static String URLtoString(URL url) throws IOException(Code) | | This method only uses the default Commons HttpClient implementation when
the URL object represents a HTTP resource. The URL object could also
represent a file or some JNDI resource. In that case, the default Java
implementation is used.
Parameters: url - URL object A string representation of the resource referenced by theURL object throws: IOException - |
getClient | public static HttpClient getClient(HostConfiguration hostConfig) throws IOException(Code) | | |
getProtocol | public static String getProtocol(boolean secure)(Code) | | |
getProtocol | public static String getProtocol(ActionRequest req)(Code) | | |
getProtocol | public static String getProtocol(RenderRequest req)(Code) | | |
hasProxyConfig | public static boolean hasProxyConfig()(Code) | | |
isNonProxyHost | public static boolean isNonProxyHost(String host)(Code) | | |
isProxyHost | public static boolean isProxyHost(String host)(Code) | | |
parameterMapToString | public static String parameterMapToString(Map parameterMap)(Code) | | |
parameterMapToString | public static String parameterMapToString(Map parameterMap, boolean addQuestion)(Code) | | |
proxifyState | public static void proxifyState(HttpState state, HostConfiguration hostConfig)(Code) | | |
|
|