palio.compiler.groovy
Class GroovyURLConnectionTest

java.lang.Object
  extended by java.net.URLConnection
      extended by palio.compiler.groovy.GroovyURLConnectionTest

public class GroovyURLConnectionTest
extends java.net.URLConnection

Author:
Szymon Kuklewicz

Constructor Summary
GroovyURLConnectionTest(java.net.URL url)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroovyURLConnectionTest

public GroovyURLConnectionTest(java.net.URL url)
Method Detail

exists

public static boolean exists(java.lang.String name)

putContent

public static void putContent(java.lang.String name,
                              java.lang.String content,
                              long timestamp)

connect

public void connect()
             throws java.io.IOException
Specified by:
connect in class java.net.URLConnection
Throws:
java.io.IOException

getContentLength

public int getContentLength()
Overrides:
getContentLength in class java.net.URLConnection

getContentEncoding

public java.lang.String getContentEncoding()
Overrides:
getContentEncoding in class java.net.URLConnection

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Overrides:
getInputStream in class java.net.URLConnection
Throws:
java.io.IOException

getLastModified

public long getLastModified()
Overrides:
getLastModified in class java.net.URLConnection