Package com.wolfram.alpha.net.apache
Class ApacheHttpTransaction
java.lang.Object
com.wolfram.alpha.net.apache.ApacheHttpTransaction
- All Implemented Interfaces:
- HttpTransaction
- 
Method SummaryModifier 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- 
executeIf 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 interface- HttpTransaction
- Throws:
- HttpHandlerException
- WAHttpException
 
- 
releasepublic void release()- Specified by:
- releasein interface- HttpTransaction
 
- 
getResponseHeaders- Specified by:
- getResponseHeadersin interface- HttpTransaction
- Throws:
- IOException
 
- 
getResponseHeaderOnly works for simple headers (ones that do not contain mltiple elements).- Parameters:
- headerName-
- Returns:
- Throws:
- IOException
 
- 
getContentLengthpublic long getContentLength()- Specified by:
- getContentLengthin interface- HttpTransaction
 
- 
getCharSet- Specified by:
- getCharSetin interface- HttpTransaction
- Throws:
- IOException
 
- 
getResponseStream- Specified by:
- getResponseStreamin interface- HttpTransaction
- Throws:
- IOException
 
- 
getResponseString- Specified by:
- getResponseStringin interface- HttpTransaction
- Throws:
- IOException
 
- 
setNoRetrypublic void setNoRetry()- Specified by:
- setNoRetryin interface- HttpTransaction
 
- 
abortpublic void abort()- Specified by:
- abortin interface- HttpTransaction
 
 
-