org.jdiagnose.library
Class HttpUrlDiagnostic

java.lang.Object
  extended byorg.jdiagnose.DiagnosticUnit
      extended byorg.jdiagnose.library.HttpUrlDiagnostic
All Implemented Interfaces:
Diagnostic, DiagnosticContainer, DiagnosticUnitLifeCycle

public class HttpUrlDiagnostic
extends DiagnosticUnit

Check a Http URL.

Author:
jmccrindle
See Also:
HttpProxyConfig

Constructor Summary
HttpUrlDiagnostic()
          Create an empty HttpUrlDiagnostic.
HttpUrlDiagnostic(java.lang.String name)
          Creates an HttpUrlDiagnostic with a fully qualified name.
 
Method Summary
 void diagnoseUrl()
          Diagnose a particular URL
 java.lang.String getMethod()
           
 java.util.Properties getParameters()
           
 HttpProxyConfig getProxyConfig()
           
 java.lang.String getUrl()
           
 void setMethod(java.lang.String method)
           
 void setParameters(java.util.Properties parameters)
           
 void setProxyConfig(HttpProxyConfig proxyConfig)
           
 void setUrl(java.lang.String string)
           
 
Methods inherited from class org.jdiagnose.DiagnosticUnit
assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertTrue, assertTrue, diagnose, getDiagnosticContainers, getDiagnostics, getName, setUp, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpUrlDiagnostic

public HttpUrlDiagnostic()
Create an empty HttpUrlDiagnostic. Url property must be set.


HttpUrlDiagnostic

public HttpUrlDiagnostic(java.lang.String name)
Creates an HttpUrlDiagnostic with a fully qualified name. The url property must be set for this class

Parameters:
name - the fqn for this diagnostic
Method Detail

diagnoseUrl

public void diagnoseUrl()
                 throws java.io.IOException
Diagnose a particular URL

Throws:
java.io.IOException

getUrl

public java.lang.String getUrl()

setUrl

public void setUrl(java.lang.String string)

getMethod

public java.lang.String getMethod()

setMethod

public void setMethod(java.lang.String method)

getParameters

public java.util.Properties getParameters()

setParameters

public void setParameters(java.util.Properties parameters)

getProxyConfig

public HttpProxyConfig getProxyConfig()

setProxyConfig

public void setProxyConfig(HttpProxyConfig proxyConfig)


Copyright © 2004-2005 Grape Design Limited. All Rights Reserved.