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 TypeMethodDescriptionvoid
abort()
void
execute()
If this returns without throwing, then you can (and must) proceed to reading the content using getResponseAsString() or getResponseAsStream().long
getResponseHeader(String headerName)
Only works for simple headers (ones that do not contain mltiple elements).String[][]
void
release()
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:
execute
in interfaceHttpTransaction
- Throws:
HttpHandlerException
WAHttpException
-
release
public void release()- Specified by:
release
in interfaceHttpTransaction
-
getResponseHeaders
- Specified by:
getResponseHeaders
in 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:
getContentLength
in interfaceHttpTransaction
-
getCharSet
- Specified by:
getCharSet
in interfaceHttpTransaction
- Throws:
IOException
-
getResponseStream
- Specified by:
getResponseStream
in interfaceHttpTransaction
- Throws:
IOException
-
getResponseString
- Specified by:
getResponseString
in interfaceHttpTransaction
- Throws:
IOException
-
setNoRetry
public void setNoRetry()- Specified by:
setNoRetry
in interfaceHttpTransaction
-
abort
public void abort()- Specified by:
abort
in interfaceHttpTransaction
-