org.demac.impl.j2sebridge.http
Class Connection

java.lang.Object
  extended by org.demac.impl.j2sebridge.http.Connection

public class Connection
extends java.lang.Object


Constructor Summary
Connection()
           
 
Method Summary
 void close()
           
 long getDate()
           
 java.lang.String getEncoding()
           
 long getExpiration()
           
 java.lang.String getFile()
           
 java.lang.String getHeaderField(int pos)
           
 java.lang.String getHeaderField(java.lang.String key)
           
 long getHeaderFieldDate(java.lang.String key, long defaultValue)
           
 int getHeaderFieldInt(java.lang.String key, int defaultValue)
           
 java.lang.String getHeaderFieldKey(int pos)
           
 java.lang.String getHost()
           
 long getLastModified()
           
 long getLength()
           
 int getPort()
           
 java.lang.String getProtocol()
           
 java.lang.String getQuery()
           
 java.lang.String getRef()
           
 java.lang.String getRequestMethod()
           
 java.lang.String getRequestProperty(java.lang.String field)
           
 int getResponseCode()
           
 java.lang.String getResponseMessage()
           
 java.lang.String getType()
           
 java.lang.String getURL()
           
 java.lang.String getValueOfHeaderProperty(java.lang.String property, java.lang.String header)
           
 java.io.DataInputStream openDataInputStream()
           
 java.io.DataOutputStream openDataOutputStream()
           
 java.io.InputStream openInputStream()
           
 java.io.OutputStream openOutputStream()
           
 void setParameters(java.lang.String spec, int access, boolean timeout)
           
 void setRequestMethod(java.lang.String method)
           
 void setRequestProperty(java.lang.String field, java.lang.String newValue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connection

public Connection()
Method Detail

getDate

public long getDate()
             throws java.io.IOException
Throws:
java.io.IOException

getExpiration

public long getExpiration()
                   throws java.io.IOException
Throws:
java.io.IOException

getFile

public java.lang.String getFile()

getHeaderField

public java.lang.String getHeaderField(int pos)
                                throws java.io.IOException
Throws:
java.io.IOException

getHeaderField

public java.lang.String getHeaderField(java.lang.String key)
                                throws java.io.IOException
Throws:
java.io.IOException

getHeaderFieldDate

public long getHeaderFieldDate(java.lang.String key,
                               long defaultValue)
                        throws java.io.IOException
Throws:
java.io.IOException

getHeaderFieldInt

public int getHeaderFieldInt(java.lang.String key,
                             int defaultValue)
                      throws java.io.IOException
Throws:
java.io.IOException

getHeaderFieldKey

public java.lang.String getHeaderFieldKey(int pos)
                                   throws java.io.IOException
Throws:
java.io.IOException

getHost

public java.lang.String getHost()

getLastModified

public long getLastModified()
                     throws java.io.IOException
Throws:
java.io.IOException

getPort

public int getPort()

getProtocol

public java.lang.String getProtocol()

getQuery

public java.lang.String getQuery()

getRef

public java.lang.String getRef()

getRequestMethod

public java.lang.String getRequestMethod()

getRequestProperty

public java.lang.String getRequestProperty(java.lang.String field)

getResponseCode

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

getResponseMessage

public java.lang.String getResponseMessage()
                                    throws java.io.IOException
Throws:
java.io.IOException

getURL

public java.lang.String getURL()

setRequestMethod

public void setRequestMethod(java.lang.String method)
                      throws java.io.IOException
Throws:
java.io.IOException

setRequestProperty

public void setRequestProperty(java.lang.String field,
                               java.lang.String newValue)
                        throws java.io.IOException
Throws:
java.io.IOException

getEncoding

public java.lang.String getEncoding()

getLength

public long getLength()

getValueOfHeaderProperty

public java.lang.String getValueOfHeaderProperty(java.lang.String property,
                                                 java.lang.String header)

getType

public java.lang.String getType()

openDataInputStream

public java.io.DataInputStream openDataInputStream()
                                            throws java.io.IOException
Throws:
java.io.IOException

openInputStream

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

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

openDataOutputStream

public java.io.DataOutputStream openDataOutputStream()
                                              throws java.io.IOException
Throws:
java.io.IOException

openOutputStream

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

setParameters

public void setParameters(java.lang.String spec,
                          int access,
                          boolean timeout)
                   throws java.io.IOException
Throws:
java.io.IOException