org.apache.qpid.info.util
Class HttpPoster

java.lang.Object
  extended by org.apache.qpid.info.util.HttpPoster
All Implemented Interfaces:
Runnable

public class HttpPoster
extends Object
implements Runnable

An simple Http post class for qpid info service


Constructor Summary
HttpPoster(Properties props, StringBuffer buf)
          Constructor
 
Method Summary
 List<String> get_response()
          Retrieves the response from the http server
 void run()
          Posts the message from the _buf StringBuffer to the http server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpPoster

public HttpPoster(Properties props,
                  StringBuffer buf)
Constructor

Parameters:
props - Properties containing the URL
buf - Buffer containing the message to be posted
Method Detail

run

public void run()
Posts the message from the _buf StringBuffer to the http server

Specified by:
run in interface Runnable

get_response

public List<String> get_response()
Retrieves the response from the http server

Returns:
List response received from the http server


Licensed to the Apache Software Foundation