fi.hut.tml.xsmiles.util
Class HTTP

java.lang.Object
  extended byfi.hut.tml.xsmiles.util.HTTP

public class HTTP
extends java.lang.Object


Field Summary
static boolean debug
           
protected static boolean httpClientEnabled
           
 
Constructor Summary
HTTP()
           
 
Method Summary
static void enableDebug(boolean en)
           
static void enableHTTPClient(boolean en)
           
static XSmilesConnection get(java.net.URL dest, BrowserWindow b)
           
protected static HTTPInterface getHTTPInterface(java.net.URL dest, BrowserWindow b)
           
static XSmilesConnection post(java.net.URL dest, byte[] data, java.util.Hashtable properties, java.lang.String content_type)
          Post data to an URL and return the InputStream to the reply TODO: support for authentication!
static XSmilesConnection post(java.net.URL dest, java.lang.String data, java.util.Hashtable properties, java.lang.String content_type)
          Post data to an URL and return the InputStream to the reply TODO: support for authentication!
static XSmilesConnection put(java.net.URL dest, byte[] data, java.util.Hashtable properties, java.lang.String content_type)
          Post data to an URL and return the InputStream to the reply TODO: support for authentication!
static XSmilesConnection put(java.net.URL dest, java.lang.String data, java.util.Hashtable properties, java.lang.String content_type)
          Post data to an URL and return the InputStream to the reply TODO: support for authentication!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public static boolean debug

httpClientEnabled

protected static boolean httpClientEnabled
Constructor Detail

HTTP

public HTTP()
Method Detail

getHTTPInterface

protected static HTTPInterface getHTTPInterface(java.net.URL dest,
                                                BrowserWindow b)

get

public static XSmilesConnection get(java.net.URL dest,
                                    BrowserWindow b)
                             throws java.lang.Exception
Throws:
java.lang.Exception

enableHTTPClient

public static void enableHTTPClient(boolean en)

enableDebug

public static void enableDebug(boolean en)

post

public static XSmilesConnection post(java.net.URL dest,
                                     java.lang.String data,
                                     java.util.Hashtable properties,
                                     java.lang.String content_type)
                              throws java.lang.Exception
Post data to an URL and return the InputStream to the reply TODO: support for authentication!

Throws:
java.lang.Exception

post

public static XSmilesConnection post(java.net.URL dest,
                                     byte[] data,
                                     java.util.Hashtable properties,
                                     java.lang.String content_type)
                              throws java.lang.Exception
Post data to an URL and return the InputStream to the reply TODO: support for authentication!

Throws:
java.lang.Exception

put

public static XSmilesConnection put(java.net.URL dest,
                                    java.lang.String data,
                                    java.util.Hashtable properties,
                                    java.lang.String content_type)
                             throws java.lang.Exception
Post data to an URL and return the InputStream to the reply TODO: support for authentication!

Throws:
java.lang.Exception

put

public static XSmilesConnection put(java.net.URL dest,
                                    byte[] data,
                                    java.util.Hashtable properties,
                                    java.lang.String content_type)
                             throws java.lang.Exception
Post data to an URL and return the InputStream to the reply TODO: support for authentication!

Throws:
java.lang.Exception


X-Smiles 1.2