SOAj Consolidated


info.soaj.core.attribute
Class SjAttributesForThrowable.BuilderThrowable

java.lang.Object
  extended by info.soaj.core.attribute.SjAttributesForThrowable.BuilderThrowable
Enclosing class:
SjAttributesForThrowable

public static class SjAttributesForThrowable.BuilderThrowable
extends java.lang.Object

This static member immutable class is used to implement the builder pattern.

Since:
v. 1.0
Author:
MarvinToll@gtcGroup.com

Field Summary
private static java.lang.String CLASS_NAME
          Class name.
protected  SjPopulatedClassName classname
          The name of class throwing the exception.
protected  java.lang.String emailBCC
          The emailBCC.
protected  java.lang.String emailCC
          The emailCC.
protected  java.lang.String emailContentType
          The emailContentType.
protected  java.lang.String emailFromAddress
          The emailFromAddress.
protected  java.lang.String emailMessage
          The emailMessageAppended.
protected  java.lang.String emailRecipients
          The emailRecipients.
protected  java.lang.String emailSmtpHost
          The emailSmtpHost.
protected  java.lang.String emailSmtpPassword
          The emailSmtpPassword for authentication.
protected  java.lang.String emailSmtpPort
          The emailSmtpPort.
protected  java.lang.String emailSmtpUserName
          The emailSmtpUserName for authentication.
protected  java.lang.String emailSocksProxyAddress
          The emailSocksProxyAddress.
protected  java.lang.String emailSocksProxyPort
          The emailSocksProxyPort.
protected  java.lang.String emailSubject
          The emailSubject.
protected  boolean forceEmailingOnly
          Forces actions to occur even when a wrapped exception has been previously logged.
protected  boolean forceLiteLogging
          Forces actions to occur even when a wrapped exception has been previously logged.
protected  boolean forceLoggingOnly
          Forces actions to occur even when a wrapped exception has been previously logged.
protected  SjPopulatedMethodName methodname
          The name of method throwing the exception.
protected  boolean suppressEmailingOnly
          Prevents action from occurring.
protected  boolean suppressLoggingOnly
          Prevents action from occurring.
 
Constructor Summary
SjAttributesForThrowable.BuilderThrowable(java.lang.String classname, java.lang.String methodname)
          Constructor
 
Method Summary
 SjAttributesForThrowable build()
          This method is used for instantiating this class.
 SjAttributesForThrowable.BuilderThrowable emailBCC(java.lang.String emailBCC)
          This method "sets" an attribute.
 SjAttributesForThrowable.BuilderThrowable emailCC(java.lang.String emailCC)
          This method "sets" an attribute.
 SjAttributesForThrowable.BuilderThrowable emailContentType(java.lang.String emailContentType)
          This method "sets" an attribute.
 SjAttributesForThrowable.BuilderThrowable emailFromAddress(java.lang.String emailFromAddress)
          This method "sets" an attribute.
 SjAttributesForThrowable.BuilderThrowable emailRecipients(java.lang.String emailRecipients)
          This method "sets" an attribute.
 SjAttributesForThrowable.BuilderThrowable emailSmtpHost(java.lang.String emailSmtpHost)
          This method "sets" an attribute.
 SjAttributesForThrowable.BuilderThrowable emailSmtpPassword(java.lang.String emailSmtpPassword)
          This method "sets" an attribute.
 SjAttributesForThrowable.BuilderThrowable emailSmtpPort(java.lang.String emailSmtpPort)
          This method "sets" an attribute.
 SjAttributesForThrowable.BuilderThrowable emailSmtpUserName(java.lang.String emailSmtpUserName)
          This method "sets" an attribute.
 SjAttributesForThrowable.BuilderThrowable emailSocksProxyAddress(java.lang.String emailSocksProxyAddress)
          This method "sets" an attribute.
 SjAttributesForThrowable.BuilderThrowable emailSocksProxyPort(java.lang.String emailSocksProxyPort)
          This method "sets" an attribute.
 SjAttributesForThrowable.BuilderThrowable emailSubject(java.lang.String emailSubject)
          This method "sets" an attribute.
 SjAttributesForThrowable.BuilderThrowable forceEmailingAndLogging(boolean isEmailingAndLoggingForced)
          This method sets a flag to force logging and emailing - even if an exception has been previously handled.
 SjAttributesForThrowable.BuilderThrowable forceEmailingOnly(boolean isEmailingForced)
          This method sets a flag to force emailing - even if an exception has been previously emailed.
 SjAttributesForThrowable.BuilderThrowable forceLiteLogging(boolean isLiteLoggingForced)
          This method sets a flag to force "lite logging" (very limited stack trace).
 SjAttributesForThrowable.BuilderThrowable forceLoggingOnly(boolean isLoggingForced)
          This method sets a flag to force logging - even if an exception has been previously logged.
 SjAttributesForThrowable.BuilderThrowable suppressEmailingAndLogging(boolean isEmailingAndLoggingSuppressed)
          This method sets a flag to suppress logging and emailing.
 SjAttributesForThrowable.BuilderThrowable suppressEmailingOnly(boolean isEmailingSuppressed)
          This method sets a flag to suppress emailing.
 SjAttributesForThrowable.BuilderThrowable suppressLoggingOnly(boolean isLoggingSuppressed)
          This method sets a flag to suppress logging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAME

private static final java.lang.String CLASS_NAME
Class name.


classname

protected final SjPopulatedClassName classname
The name of class throwing the exception.


methodname

protected final SjPopulatedMethodName methodname
The name of method throwing the exception.


suppressLoggingOnly

protected boolean suppressLoggingOnly
Prevents action from occurring. Default is false.


suppressEmailingOnly

protected boolean suppressEmailingOnly
Prevents action from occurring. Default is false.


forceLiteLogging

protected boolean forceLiteLogging
Forces actions to occur even when a wrapped exception has been previously logged. Default is false.


forceLoggingOnly

protected boolean forceLoggingOnly
Forces actions to occur even when a wrapped exception has been previously logged. Default is false.


forceEmailingOnly

protected boolean forceEmailingOnly
Forces actions to occur even when a wrapped exception has been previously logged. Default is false.


emailMessage

protected java.lang.String emailMessage
The emailMessageAppended.


emailSubject

protected java.lang.String emailSubject
The emailSubject.


emailRecipients

protected java.lang.String emailRecipients
The emailRecipients.


emailCC

protected java.lang.String emailCC
The emailCC.


emailBCC

protected java.lang.String emailBCC
The emailBCC.


emailFromAddress

protected java.lang.String emailFromAddress
The emailFromAddress.


emailContentType

protected java.lang.String emailContentType
The emailContentType.


emailSmtpHost

protected java.lang.String emailSmtpHost
The emailSmtpHost.


emailSmtpUserName

protected java.lang.String emailSmtpUserName
The emailSmtpUserName for authentication.


emailSmtpPassword

protected java.lang.String emailSmtpPassword
The emailSmtpPassword for authentication.


emailSmtpPort

protected java.lang.String emailSmtpPort
The emailSmtpPort.


emailSocksProxyAddress

protected java.lang.String emailSocksProxyAddress
The emailSocksProxyAddress.


emailSocksProxyPort

protected java.lang.String emailSocksProxyPort
The emailSocksProxyPort.

Constructor Detail

SjAttributesForThrowable.BuilderThrowable

public SjAttributesForThrowable.BuilderThrowable(java.lang.String classname,
                                                 java.lang.String methodname)
Constructor

Parameters:
classname -
methodname -
Method Detail

suppressLoggingOnly

public SjAttributesForThrowable.BuilderThrowable suppressLoggingOnly(boolean isLoggingSuppressed)
This method sets a flag to suppress logging.

Parameters:
isLoggingSuppressed -
Returns:
BuilderThrowable

suppressEmailingOnly

public SjAttributesForThrowable.BuilderThrowable suppressEmailingOnly(boolean isEmailingSuppressed)
This method sets a flag to suppress emailing.

Parameters:
isEmailingSuppressed -
Returns:
BuilderThrowable

suppressEmailingAndLogging

public SjAttributesForThrowable.BuilderThrowable suppressEmailingAndLogging(boolean isEmailingAndLoggingSuppressed)
This method sets a flag to suppress logging and emailing.

Parameters:
isEmailingAndLoggingSuppressed -
Returns:
BuilderThrowable

forceLiteLogging

public SjAttributesForThrowable.BuilderThrowable forceLiteLogging(boolean isLiteLoggingForced)
This method sets a flag to force "lite logging" (very limited stack trace).

Parameters:
isLiteLoggingForced -
Returns:
BuilderThrowable

forceLoggingOnly

public SjAttributesForThrowable.BuilderThrowable forceLoggingOnly(boolean isLoggingForced)
This method sets a flag to force logging - even if an exception has been previously logged.

Parameters:
isLoggingForced -
Returns:
BuilderThrowable

forceEmailingOnly

public SjAttributesForThrowable.BuilderThrowable forceEmailingOnly(boolean isEmailingForced)
This method sets a flag to force emailing - even if an exception has been previously emailed.

Parameters:
isEmailingForced -
Returns:
BuilderThrowable

forceEmailingAndLogging

public SjAttributesForThrowable.BuilderThrowable forceEmailingAndLogging(boolean isEmailingAndLoggingForced)
This method sets a flag to force logging and emailing - even if an exception has been previously handled.

Parameters:
isEmailingAndLoggingForced -
Returns:
BuilderThrowable

emailSubject

public SjAttributesForThrowable.BuilderThrowable emailSubject(java.lang.String emailSubject)
This method "sets" an attribute.

Parameters:
emailSubject -
Returns:
BuilderThrowable

emailRecipients

public SjAttributesForThrowable.BuilderThrowable emailRecipients(java.lang.String emailRecipients)
This method "sets" an attribute.

Parameters:
emailRecipients -
Returns:
BuilderEmail

emailCC

public SjAttributesForThrowable.BuilderThrowable emailCC(java.lang.String emailCC)
This method "sets" an attribute.

Parameters:
emailCC -
Returns:
BuilderThrowable

emailBCC

public SjAttributesForThrowable.BuilderThrowable emailBCC(java.lang.String emailBCC)
This method "sets" an attribute.

Parameters:
emailBCC -
Returns:
BuilderThrowable

emailFromAddress

public SjAttributesForThrowable.BuilderThrowable emailFromAddress(java.lang.String emailFromAddress)
This method "sets" an attribute.

Parameters:
emailFromAddress -
Returns:
BuilderThrowable

emailContentType

public SjAttributesForThrowable.BuilderThrowable emailContentType(java.lang.String emailContentType)
This method "sets" an attribute.

Parameters:
emailContentType -
Returns:
BuilderThrowable

emailSmtpHost

public SjAttributesForThrowable.BuilderThrowable emailSmtpHost(java.lang.String emailSmtpHost)
This method "sets" an attribute.

Parameters:
emailSmtpHost -
Returns:
BuilderThrowable

emailSmtpUserName

public SjAttributesForThrowable.BuilderThrowable emailSmtpUserName(java.lang.String emailSmtpUserName)
This method "sets" an attribute.

Parameters:
emailSmtpUserName -
Returns:
BuilderThrowable

emailSmtpPassword

public SjAttributesForThrowable.BuilderThrowable emailSmtpPassword(java.lang.String emailSmtpPassword)
This method "sets" an attribute.

Parameters:
emailSmtpPassword -
Returns:
BuilderThrowable

emailSmtpPort

public SjAttributesForThrowable.BuilderThrowable emailSmtpPort(java.lang.String emailSmtpPort)
This method "sets" an attribute.

Parameters:
emailSmtpPort -
Returns:
BuilderThrowable

emailSocksProxyAddress

public SjAttributesForThrowable.BuilderThrowable emailSocksProxyAddress(java.lang.String emailSocksProxyAddress)
This method "sets" an attribute.

Parameters:
emailSocksProxyAddress -
Returns:
BuilderThrowable

emailSocksProxyPort

public SjAttributesForThrowable.BuilderThrowable emailSocksProxyPort(java.lang.String emailSocksProxyPort)
This method "sets" an attribute.

Parameters:
emailSocksProxyPort -
Returns:
BuilderThrowable

build

public SjAttributesForThrowable build()
This method is used for instantiating this class.

Returns:
SjAttributesForThrowable

SOAj Consolidated


Copyright (c) 2006 - 2009 by Global Technology Consulting Group, Inc. at gtcGroup.com.
Use is authorized, provided the source is acknowledged by inclusion of this copyright notice.