|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.httpclient.HttpMethodBase | +--org.apache.commons.httpclient.methods.GetMethod | +--org.apache.commons.httpclient.methods.ExpectContinueMethod
This abstract class serves as a foundation for all HTTP methods that support 'Expect: 100-continue' handshake.
'Expect: 100-continue' handshake should be used with caution, as it may cause problems with HTTP servers and proxies that do not support HTTP/1.1 protocol.
Fields inherited from class org.apache.commons.httpclient.HttpMethodBase |
USER_AGENT,
WWW_FORM_URL |
Constructor Summary | |
ExpectContinueMethod()
No-arg constructor. |
|
ExpectContinueMethod(String uri)
Constructor specifying a URI. |
|
ExpectContinueMethod(String uri,
String tempDir)
Deprecated. the client is responsible for disk I/O |
|
ExpectContinueMethod(String uri,
String tempDir,
String tempFile)
Deprecated. the client is responsible for disk I/O |
Method Summary | |
protected void |
addRequestHeaders(HttpState state,
HttpConnection conn)
Set the Expect header if it has not already been set, in addition to the "standard" set of headers. |
boolean |
getUseExpectHeader()
Returns the useExpectHeader. |
protected abstract boolean |
hasRequestContent()
Returns true if there is a request body to be sent. |
void |
setUseExpectHeader(boolean value)
Sets the useExpectHeader. |
Methods inherited from class org.apache.commons.httpclient.methods.GetMethod |
getFileData,
getName,
getTempDir,
getTempFile,
getUseDisk,
readResponseBody,
recycle,
setFileData,
setTempDir,
setTempFile,
setUseDisk |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ExpectContinueMethod()
public ExpectContinueMethod(String uri)
uri
- either an absolute or relative URIpublic ExpectContinueMethod(String uri, String tempDir)
uri
- either an absolute or relative URItempDir
- directory to store temp files inpublic ExpectContinueMethod(String uri, String tempDir, String tempFile)
uri
- either an absolute or relative URItempDir
- directory to store temp files intempFile
- file to store temporary data inMethod Detail |
public boolean getUseExpectHeader()
public void setUseExpectHeader(boolean value)
'Expect: 100-continue' handshake should be used with caution, as it may cause problems with HTTP servers and proxies that do not support HTTP/1.1 protocol.
value
- The useExpectHeader to setprotected abstract boolean hasRequestContent()
protected void addRequestHeaders(HttpState state, HttpConnection conn) throws IOException, HttpException
state
- the client stateconn
- the connection to write to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |