org.kite9.tool.server
Class HttpItemServer

java.lang.Object
  extended by org.kite9.tool.server.HttpItemServer
All Implemented Interfaces:
ItemServer

public class HttpItemServer
extends Object
implements ItemServer

Connects to an ItemServer exposed using HTTP. Now supports HTTP proxies being set manually, for maven / properties configuration

Author:
moffatr

Field Summary
static String REMOTE_SERVER_URL
           
 
Constructor Summary
HttpItemServer()
           
 
Method Summary
 String getProxyHost()
           
 String getProxyPass()
           
 int getProxyPort()
           
 String getProxyUser()
           
 String getUrl()
           
protected  void resetProxy()
           
 ZipInputStream serve(WorkItem item)
           
 void serve(WorkItem item, OutputStream os)
           
 void setProxyHost(String proxyHost)
           
 void setProxyPass(String proxyPass)
           
 void setProxyPort(int proxyPort)
           
 void setProxyUser(String proxyUser)
           
protected  void setupProxy()
           
 void setUrl(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMOTE_SERVER_URL

public static final String REMOTE_SERVER_URL
See Also:
Constant Field Values
Constructor Detail

HttpItemServer

public HttpItemServer()
Method Detail

getUrl

public String getUrl()

setUrl

public void setUrl(String url)

serve

public ZipInputStream serve(WorkItem item)
                     throws IOException
Specified by:
serve in interface ItemServer
Throws:
IOException

serve

public void serve(WorkItem item,
                  OutputStream os)
           throws IOException
Specified by:
serve in interface ItemServer
Throws:
IOException

resetProxy

protected void resetProxy()

setupProxy

protected void setupProxy()

getProxyHost

public String getProxyHost()

setProxyHost

public void setProxyHost(String proxyHost)

getProxyPort

public int getProxyPort()

setProxyPort

public void setProxyPort(int proxyPort)

getProxyUser

public String getProxyUser()

setProxyUser

public void setProxyUser(String proxyUser)

getProxyPass

public String getProxyPass()

setProxyPass

public void setProxyPass(String proxyPass)


Copyright © 2011. All Rights Reserved.