com.antiaction.mayhem.httpd.servlet.resource
Class Connection

java.lang.Object
  extended by java.net.URLConnection
      extended by com.antiaction.mayhem.httpd.servlet.resource.Connection

public class Connection
extends java.net.URLConnection

URLConnection implementation.

Version:
1.00
Author:
Nicholas Clarke

Field Summary
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
Connection(java.net.URL url)
           
 
Method Summary
 void connect()
           
 java.lang.Object getContent()
           
 java.lang.Object getContent(java.lang.Class[] classes)
           
 java.lang.String getContentEncoding()
           
 int getContentLength()
           
 java.lang.String getContentType()
           
 java.io.InputStream getInputStream()
           
 long getLastModified()
           
 
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Connection

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

connect

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

getContent

public java.lang.Object getContent()
                            throws java.io.IOException
Overrides:
getContent in class java.net.URLConnection
Throws:
java.io.IOException

getContent

public java.lang.Object getContent(java.lang.Class[] classes)
                            throws java.io.IOException
Overrides:
getContent in class java.net.URLConnection
Throws:
java.io.IOException

getInputStream

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

getContentLength

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

getContentType

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

getContentEncoding

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

getLastModified

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


Copyright © 2001-2004 Nicholas Clarke. All Rights Reserved.