Package com.wolfram.alpha.net.apache
Class ApacheHttpTransaction
java.lang.Object
com.wolfram.alpha.net.apache.ApacheHttpTransaction
- All Implemented Interfaces:
HttpTransaction
-
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voidexecute()If this returns without throwing, then you can (and must) proceed to reading the content using getResponseAsString() or getResponseAsStream().longgetResponseHeader(String headerName)Only works for simple headers (ones that do not contain mltiple elements).String[][]voidrelease()void
-
Method Details
-
execute
If this returns without throwing, then you can (and must) proceed to reading the content using getResponseAsString() or getResponseAsStream(). If it throws, then you do not have to read. You must always call release().- Specified by:
executein interfaceHttpTransaction- Throws:
HttpHandlerExceptionWAHttpException
-
release
public void release()- Specified by:
releasein interfaceHttpTransaction
-
getResponseHeaders
- Specified by:
getResponseHeadersin interfaceHttpTransaction- Throws:
IOException
-
getResponseHeader
Only works for simple headers (ones that do not contain mltiple elements).- Parameters:
headerName-- Returns:
- Throws:
IOException
-
getContentLength
public long getContentLength()- Specified by:
getContentLengthin interfaceHttpTransaction
-
getCharSet
- Specified by:
getCharSetin interfaceHttpTransaction- Throws:
IOException
-
getResponseStream
- Specified by:
getResponseStreamin interfaceHttpTransaction- Throws:
IOException
-
getResponseString
- Specified by:
getResponseStringin interfaceHttpTransaction- Throws:
IOException
-
setNoRetry
public void setNoRetry()- Specified by:
setNoRetryin interfaceHttpTransaction
-
abort
public void abort()- Specified by:
abortin interfaceHttpTransaction
-