net.sf.fikin.ant.httpclientanttask
Class AntProxy

java.lang.Object
  extended by net.sf.fikin.ant.httpclientanttask.AntProxy

public class AntProxy
extends java.lang.Object

Wraps up HttpClient proxy into Ant tag

Examples:

 
      <proxy url="..." />
 
      <proxy url="..." >
          <proxyCredentials ... />
      </proxy>
 
 
created on Feb 8, 2006

Version:
$Revision: 1.3 $
Author:
fiykov

Constructor Summary
AntProxy()
           
 
Method Summary
 void check()
          check if url has been specified and it is in appropriate format
 AntCredentials createProxyCredentials()
          assign proxy-specific user authentication data
 org.apache.commons.httpclient.ProxyHost getHttpHost()
          create HttpClient proxy object out of this data
 AntCredentials getProxyCredentials()
          get proxy's authentication data
 java.lang.String getUrl()
          get proxy url
 void setUrl(java.lang.String url)
          set proxy url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntProxy

public AntProxy()
Method Detail

setUrl

public void setUrl(java.lang.String url)
set proxy url

Parameters:
url - is full url, default format is to be "http://host:port"
Ant Task Param Required:
true

getUrl

public java.lang.String getUrl()
get proxy url

Returns:
url, by default the format is to be "http://host:port"

createProxyCredentials

public AntCredentials createProxyCredentials()
assign proxy-specific user authentication data

Returns:
authentication tag
Ant Task Param Required:
false

getProxyCredentials

public AntCredentials getProxyCredentials()
get proxy's authentication data

Returns:
proxy authentication data if given/needed

check

public void check()
           throws org.apache.tools.ant.BuildException
check if url has been specified and it is in appropriate format

Throws:
org.apache.tools.ant.BuildException

getHttpHost

public org.apache.commons.httpclient.ProxyHost getHttpHost()
create HttpClient proxy object out of this data

Returns:
ProxyHost


Copyright © 2003-2007 Nikolay Fiykov. All Rights Reserved.