Package org.apache.axis2.transport.http
Interface Request
-
public interface Request
Interface to prepare and execute an HTTP request.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addHeader(String name, String value)
void
enableAuthentication(HTTPAuthenticator authenticator)
void
enableHTTP10()
void
execute()
Map<String,String>
getCookies()
Header[]
getRequestHeaders()
InputStream
getResponseContent()
String
getResponseHeader(String name)
Header[]
getResponseHeaders()
int
getStatusCode()
String
getStatusText()
void
releaseConnection()
void
setConnectionTimeout(int timeout)
void
setHeader(String name, String value)
void
setSocketTimeout(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()
-
-