Method Summary |
|
public boolean | canCache() Returns true if the data associated with this URL can be cached. |
public void | close() Call this to close the connection and flush any remaining data. |
public int | getContentLength() Call this routine to get the content-length associated with this
object. |
public String | getContentType() Call this routine to get the content-type associated with this
object. |
public String | getHeaderField(String name) |
public String | getHeaderField(int n) Return the value for the nth header field. |
public String | getHeaderFieldKey(int n) Return the key for the nth header field. |
public MessageHeader | getProperties() Call this routine to get the property list for this object.
Properties (like content-type) that have explicit getXX() methods
associated with them should be accessed using those methods. |
protected void | setContentLength(int length) Call this routine to set the content-length associated with this
object. |
public void | setContentType(String type) Set the content type of this URL to a specific value.
Parameters: type - The content type to use. |
public void | setProperties(MessageHeader properties) Call this routine to set the property list for this object. |
public void | setRequestProperty(String key, String value) |