Package org.apache.axis2.transport.http
Interface Request
-
public interface RequestInterface to prepare and execute an HTTP request.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddHeader(String name, String value)voidenableAuthentication(HTTPAuthenticator authenticator)voidenableHTTP10()voidexecute()Map<String,String>getCookies()Header[]getRequestHeaders()InputStreamgetResponseContent()StringgetResponseHeader(String name)Header[]getResponseHeaders()intgetStatusCode()StringgetStatusText()voidreleaseConnection()voidsetConnectionTimeout(int timeout)voidsetHeader(String name, String value)voidsetSocketTimeout(int timeout)
-
-
-
Method Detail
-
enableHTTP10
void enableHTTP10()
-
getRequestHeaders
Header[] getRequestHeaders()
-
enableAuthentication
void enableAuthentication(HTTPAuthenticator authenticator)
-
setConnectionTimeout
void setConnectionTimeout(int timeout)
-
setSocketTimeout
void setSocketTimeout(int timeout)
-
execute
void execute() throws IOException- Throws:
IOException
-
getStatusCode
int getStatusCode()
-
getStatusText
String getStatusText()
-
getResponseHeaders
Header[] getResponseHeaders()
-
getResponseContent
InputStream getResponseContent() throws IOException
- Throws:
IOException
-
releaseConnection
void releaseConnection()
-
-