|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.logging.log4j.message.ObjectMessage
public class ObjectMessage
Handles messages that contain an Object.
| Constructor Summary | |
|---|---|
ObjectMessage(Object obj)
Create the ObjectMessage. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String |
getFormat()
Returns the object formatted using its toString method. |
String |
getFormattedMessage()
Returns the formatted object message. |
Object[] |
getParameters()
Returns the object as if it were a parameter. |
Throwable |
getThrowable()
Gets the message if it is a throwable. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectMessage(Object obj)
obj - The Object to format.| Method Detail |
|---|
public String getFormattedMessage()
getFormattedMessage in interface Messagepublic String getFormat()
getFormat in interface Messagepublic Object[] getParameters()
getParameters in interface Messagepublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic Throwable getThrowable()
getThrowable in interface Message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.