org.drools.agent
Class HttpClientImpl

java.lang.Object
  extended by org.drools.agent.HttpClientImpl
All Implemented Interfaces:
IHttpClient

public class HttpClientImpl
extends Object
implements IHttpClient


Field Summary
protected static org.slf4j.Logger logger
           
 
Constructor Summary
HttpClientImpl()
           
 
Method Summary
 org.drools.agent.LastUpdatedPing checkLastUpdated(URL url)
           
 Package fetchPackage(URL url, boolean enableBasicAuthentication, String username, String password)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static transient org.slf4j.Logger logger
Constructor Detail

HttpClientImpl

public HttpClientImpl()
Method Detail

checkLastUpdated

public org.drools.agent.LastUpdatedPing checkLastUpdated(URL url)
                                                  throws IOException
Specified by:
checkLastUpdated in interface IHttpClient
Throws:
IOException

fetchPackage

public Package fetchPackage(URL url,
                            boolean enableBasicAuthentication,
                            String username,
                            String password)
                     throws IOException,
                            ClassNotFoundException
Specified by:
fetchPackage in interface IHttpClient
Throws:
IOException
ClassNotFoundException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.