URLConnection introduces the following setup fields and corresponding methods.
| field | method |
|
| boolean doinput | void setDoInput(boolean) |
|
| boolean dooutput | void setDoOutput(boolean) |
|
| boolean connected | void connect() | opens a communications link, if a connection does not exist |
| Caching
| ||
| field | method |
|
| long ifmodifiedsince | setIfModifiedSince | support fetching of only non-cached modified objects |
| boolean usecaches | setUseCaches | control when caching is allowed |
| client interaction
| ||
| field | method |
|
| boolean allowuserinteraction | setAllowUserInteraction | control user interactions such as popping up an authentication dialog |