com.prolifics.servlet
Class Comm
java.lang.Object
com.prolifics.servlet.Comm
public class Comm
- extends java.lang.Object
Constructor Summary |
Comm()
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Comm
public Comm()
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException
destroy
public void destroy()
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize
in class java.lang.Object
- Throws:
java.lang.Throwable
stringToBytes
public static byte[] stringToBytes(java.lang.String src)
bytesToString
public static java.lang.String bytesToString(byte[] src,
int offset,
int len)
open
public void open(java.lang.String name,
java.lang.String URL)
throws java.io.IOException
- Throws:
java.io.IOException
oldopen
public void oldopen(java.lang.String name,
java.lang.String URL)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Throws:
java.io.IOException
sendRequest
public void sendRequest(int content_len,
java.io.InputStream in,
HttpEnv env)
throws java.io.IOException
- Throws:
java.io.IOException
getConnectTimeout
public int getConnectTimeout()
setConnectTimeout
public void setConnectTimeout(int pConnectTimeout)
getPostDataString
public java.lang.String getPostDataString(JSONObject params)
throws java.io.UnsupportedEncodingException,
JSONException
- Throws:
java.io.UnsupportedEncodingException
JSONException
getPostDataString
public java.lang.String getPostDataString(java.lang.String name,
java.lang.Object value,
java.lang.StringBuilder builder,
int index)
throws java.io.UnsupportedEncodingException,
JSONException
- Throws:
java.io.UnsupportedEncodingException
JSONException