public static final class JMEPlatformAdapter.JMEHttpConn
extends java.lang.Object
implements org.tantalum.PlatformUtils.HttpConn
Constructor and Description |
---|
JMEPlatformAdapter.JMEHttpConn(java.lang.String url,
java.util.Vector requestPropertyKeys,
java.util.Vector requestPropertyValues)
Create a platform-specific HTTP network connection, and set the HTTP
header with the corresponding key-value pairs
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.io.InputStream |
getInputStream()
Get the InputStream from the platform-specific HTTP connection
|
long |
getLength() |
long |
getMaxLengthSupportedAsBlockOperation()
500kB or you should do a streaming operation instead
|
java.io.OutputStream |
getOutputStream()
Get the OutputStream from the platform-specific HTTP connection
|
int |
getResponseCode()
Get the response code provided by the HTTP server after the
connection is made
|
void |
getResponseHeaders(java.util.Hashtable headers) |
public JMEPlatformAdapter.JMEHttpConn(java.lang.String url, java.util.Vector requestPropertyKeys, java.util.Vector requestPropertyValues) throws java.io.IOException
url
- requestPropertyKeys
- - a list of header keysrequestPropertyValues
- - a list of associated header valuesjava.io.IOException
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface org.tantalum.PlatformUtils.HttpConn
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface org.tantalum.PlatformUtils.HttpConn
java.io.IOException
public int getResponseCode() throws java.io.IOException
getResponseCode
in interface org.tantalum.PlatformUtils.HttpConn
java.io.IOException
public void getResponseHeaders(java.util.Hashtable headers) throws java.io.IOException
getResponseHeaders
in interface org.tantalum.PlatformUtils.HttpConn
java.io.IOException
public long getLength()
getLength
in interface org.tantalum.PlatformUtils.HttpConn
public void close() throws java.io.IOException
close
in interface org.tantalum.PlatformUtils.HttpConn
java.io.IOException
public long getMaxLengthSupportedAsBlockOperation()
getMaxLengthSupportedAsBlockOperation
in interface org.tantalum.PlatformUtils.HttpConn