public static final class NetFunctions.HttpPage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PATTERN_ASCTIME |
static java.lang.String |
PATTERN_RFC1036 |
static java.lang.String |
PATTERN_RFC1123 |
Constructor and Description |
---|
HttpPage(java.io.InputStream is)
Store webpage from the given input stream
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBodyAsString()
Retrieve http body as string should only be used with text content
|
long |
getExpires() |
long |
getLastModified() |
java.lang.String |
getProperty(java.lang.String key)
Get various properties of the web page
|
long |
getServerDate() |
boolean |
isHeaderOK() |
void |
retrieveHeader()
Retrieve http header info
|
boolean |
saveBodyToFile(java.lang.String dest,
javax.swing.JProgressBar jpb)
Save http body to a file, applies to all types of content
|
public static final java.lang.String PATTERN_RFC1123
public static final java.lang.String PATTERN_RFC1036
public static final java.lang.String PATTERN_ASCTIME
public HttpPage(java.io.InputStream is)
is
- public final void retrieveHeader()
public final java.lang.String getBodyAsString()
public final boolean saveBodyToFile(java.lang.String dest, javax.swing.JProgressBar jpb)
dest
- File destinationjpb
- Progress barpublic final java.lang.String getProperty(java.lang.String key)
key
- public final long getLastModified()
public final long getServerDate()
public final long getExpires()
public final boolean isHeaderOK()