org.demac.impl.j2sebridge.http
Class Connection
java.lang.Object
org.demac.impl.j2sebridge.http.Connection
public class Connection
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Connection
public Connection()
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