net.codesmarts.log4j
Class AbstractHttpBugReportAppender

java.lang.Object
  extended byorg.apache.log4j.AppenderSkeleton
      extended bynet.codesmarts.log4j.AbstractBugReportAppender
          extended bynet.codesmarts.log4j.AbstractHttpBugReportAppender
All Implemented Interfaces:
org.apache.log4j.Appender, BugReportAppender, org.apache.log4j.spi.OptionHandler
Direct Known Subclasses:
BugsGenieBugReportAppender

public abstract class AbstractHttpBugReportAppender
extends AbstractBugReportAppender

Base class for creating BugReport appenders that file bugs to a web based bug tracking system

Author:
Fred McCann

Field Summary
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Constructor Summary
AbstractHttpBugReportAppender()
           
 
Method Summary
 java.lang.String getAuthenticationHost()
          Get the host for HTTP authentication
 java.lang.String getAuthenticationPassword()
          Get the HTTP authentication password
 java.lang.String getAuthenticationRealm()
          Get the realm for HTTP authentication
 java.lang.String getAuthenticationUsername()
          Get the HTTP authentication username
 org.apache.commons.httpclient.HttpClient getHttpClient()
          Get an HttpClient
 void init()
          initialize appender
 void setAuthenticationHost(java.lang.String authenticationHost)
          Set the host for HTTP authentication
 void setAuthenticationPassword(java.lang.String authenticationPassword)
          Set the HTTP authentication password
 void setAuthenticationRealm(java.lang.String authenticationRealm)
          Set the realm for HTTP authentication
 void setAuthenticationUsername(java.lang.String authenticationUsername)
          Set the HTTP authentication username
 void setConnectionStaleCheckingEnabled(boolean enabled)
          Enable checking of stale connections
 void setMaxConnectionsPerHost(int connections)
          set Maximum number of connections allowed per host
 void setMaxTotalConnections(int max)
          set maximum number of allowed connections
 
Methods inherited from class net.codesmarts.log4j.AbstractBugReportAppender
activateOptions, append, append, close, doAppend, getHashingMethod, getHashMethod, getMaxSize, getThresholdPriority, getThresholdSize, isReportDuplicates, requiresLayout, setHashingMethod, setLayout, setMaxSize, setReportDuplicates, setThresholdPriority, setThresholdSize
 
Methods inherited from class org.apache.log4j.AppenderSkeleton
addFilter, clearFilters, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setName, setThreshold
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHttpBugReportAppender

public AbstractHttpBugReportAppender()
Method Detail

init

public void init()
initialize appender

Specified by:
init in class AbstractBugReportAppender

getHttpClient

public org.apache.commons.httpclient.HttpClient getHttpClient()
Get an HttpClient

Returns:
Returns the client.

setConnectionStaleCheckingEnabled

public void setConnectionStaleCheckingEnabled(boolean enabled)
Enable checking of stale connections

Parameters:
enabled -

setMaxConnectionsPerHost

public void setMaxConnectionsPerHost(int connections)
set Maximum number of connections allowed per host

Parameters:
connections -

setMaxTotalConnections

public void setMaxTotalConnections(int max)
set maximum number of allowed connections


getAuthenticationPassword

public java.lang.String getAuthenticationPassword()
Get the HTTP authentication password

Returns:
Returns the authenticationPassword.

setAuthenticationPassword

public void setAuthenticationPassword(java.lang.String authenticationPassword)
Set the HTTP authentication password

Parameters:
authenticationPassword - The authenticationPassword to set.

getAuthenticationUsername

public java.lang.String getAuthenticationUsername()
Get the HTTP authentication username

Returns:
Returns the authenticationUsername.

setAuthenticationUsername

public void setAuthenticationUsername(java.lang.String authenticationUsername)
Set the HTTP authentication username

Parameters:
authenticationUsername - The authenticationUsername to set.

getAuthenticationHost

public java.lang.String getAuthenticationHost()
Get the host for HTTP authentication

Returns:
Returns the authenticationHost.

setAuthenticationHost

public void setAuthenticationHost(java.lang.String authenticationHost)
Set the host for HTTP authentication

Parameters:
authenticationHost - The authenticationHost to set.

getAuthenticationRealm

public java.lang.String getAuthenticationRealm()
Get the realm for HTTP authentication

Returns:
Returns the authenticationRealm.

setAuthenticationRealm

public void setAuthenticationRealm(java.lang.String authenticationRealm)
Set the realm for HTTP authentication

Parameters:
authenticationRealm - The authenticationRealm to set.


Copyright © 2005 CodeSmarts. All Rights Reserved.