xmlBlaster 2.1.0 API

org.xmlBlaster.client.protocol.http.applet
Class UrlConnection

java.lang.Object
  extended by org.xmlBlaster.client.protocol.http.applet.UrlConnection
All Implemented Interfaces:
I_Connection

public class UrlConnection
extends java.lang.Object
implements I_Connection

UrlConnection

Author:
Michele Laghi

Field Summary
private  java.net.HttpURLConnection conn
           
 
Constructor Summary
UrlConnection(java.lang.String urlString)
           
 
Method Summary
 void connect()
           
 java.lang.String getHeaderField(java.lang.String key)
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 void setDoInput(boolean doInput)
           
 void setDoOutput(boolean doOutput)
           
 void setPostMethod()
           
 void setRequestProperty(java.lang.String key, java.lang.String val)
           
 void setUseCaches(boolean useCaches)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conn

private java.net.HttpURLConnection conn
Constructor Detail

UrlConnection

public UrlConnection(java.lang.String urlString)
              throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Specified by:
getInputStream in interface I_Connection
Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Specified by:
getOutputStream in interface I_Connection
Throws:
java.io.IOException

getHeaderField

public java.lang.String getHeaderField(java.lang.String key)
Specified by:
getHeaderField in interface I_Connection

setRequestProperty

public void setRequestProperty(java.lang.String key,
                               java.lang.String val)
Specified by:
setRequestProperty in interface I_Connection

setPostMethod

public void setPostMethod()
Specified by:
setPostMethod in interface I_Connection

setDoInput

public void setDoInput(boolean doInput)
Specified by:
setDoInput in interface I_Connection

setDoOutput

public void setDoOutput(boolean doOutput)
Specified by:
setDoOutput in interface I_Connection

setUseCaches

public void setUseCaches(boolean useCaches)
Specified by:
setUseCaches in interface I_Connection

connect

public void connect()
             throws java.io.IOException
Specified by:
connect in interface I_Connection
Throws:
java.io.IOException

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.