com.sun.jdmk.comm
Class TimedURLConnection

java.lang.Object
  extended by com.sun.jdmk.comm.TimedURLConnection

public class TimedURLConnection
extends java.lang.Object

This class defines methods to make a socket object with a specified timeout. NPCTE fix for escalation 535848, bug 4653805, SD, 02 May 02


Constructor Summary
TimedURLConnection(java.net.URL url, long timeout)
           
 
Method Summary
 java.io.InputStream getErrorStream()
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 int getResponseCode()
           
 java.net.URLConnection getURLConnection()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimedURLConnection

public TimedURLConnection(java.net.URL url,
                          long timeout)
                   throws java.io.IOException,
                          java.lang.SecurityException
Throws:
java.io.IOException
java.lang.SecurityException
Method Detail

getURLConnection

public java.net.URLConnection getURLConnection()

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Throws:
java.io.IOException

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Throws:
java.io.IOException

getResponseCode

public int getResponseCode()
                    throws java.io.IOException
Throws:
java.io.IOException

getErrorStream

public java.io.InputStream getErrorStream()
                                   throws java.io.IOException
Throws:
java.io.IOException

Open Source build 01-ea
opendmk-1.0-b01-ea 2010.09.25_15:22:04_BST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.