com.prolifics.servlet
Class Comm

java.lang.Object
  extended by com.prolifics.servlet.Comm

public class Comm
extends java.lang.Object


Constructor Summary
Comm()
           
 
Method Summary
static java.lang.String bytesToString(byte[] src, int offset, int len)
           
 void close()
           
 void destroy()
           
protected  void finalize()
           
 int getConnectTimeout()
           
 java.io.InputStream getInputStream()
           
 java.lang.String getPostDataString(JSONObject params)
           
 java.lang.String getPostDataString(java.lang.String name, java.lang.Object value, java.lang.StringBuilder builder, int index)
           
static void main(java.lang.String[] args)
           
 void oldopen(java.lang.String name, java.lang.String URL)
           
 void open(java.lang.String name, java.lang.String URL)
           
 void sendRequest(int content_len, java.io.InputStream in, HttpEnv env)
           
 void setConnectTimeout(int pConnectTimeout)
           
static byte[] stringToBytes(java.lang.String src)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Comm

public Comm()
Method Detail

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