public class GroovyURLConnectionTest
extends java.net.URLConnection
Constructor and Description |
---|
GroovyURLConnectionTest(java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
void |
connect() |
static boolean |
exists(java.lang.String name) |
java.lang.String |
getContentEncoding() |
int |
getContentLength() |
java.io.InputStream |
getInputStream() |
long |
getLastModified() |
static void |
putContent(java.lang.String name,
java.lang.String content,
long timestamp) |
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
public static boolean exists(java.lang.String name)
public static void putContent(java.lang.String name, java.lang.String content, long timestamp)
public void connect() throws java.io.IOException
connect
in class java.net.URLConnection
java.io.IOException
public int getContentLength()
getContentLength
in class java.net.URLConnection
public java.lang.String getContentEncoding()
getContentEncoding
in class java.net.URLConnection
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.URLConnection
java.io.IOException
public long getLastModified()
getLastModified
in class java.net.URLConnection