|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.ws.wrappers.RemoteProperties
public class RemoteProperties
A container for the information marshalled/serialized by a RemoteException. That information is encapsulated in a container,
instead of being marshalled/serialized as individual properties of
RemoteException, so that the exception may perform
post-processing after all component properties below are set.
The stack trace capture is a string array, containing the individual lines of the receiver's throwable stack trace printing: the first string is usually the exception class and message, and the remaining strings represent individual frames in the unravelled stack.
Equality and hash code generation ignore the receiver's throwable, its wrapper, and its class name.
| Constructor Summary | |
|---|---|
RemoteProperties()
Creates a new container. |
|
RemoteProperties(Throwable throwable)
Creates a new container for a RemoteException that
wraps the given throwable. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
String |
getServerMessage()
Returns the receiver's server-localized message. |
String |
getServerName()
Returns the receiver's server class name. |
String |
getServerString()
Returns the receiver's server string representation. |
Throwable |
getThrowable()
Returns a best-effort reconstruction of the receiver's throwable, as described in RemoteException. |
String[] |
getTraceCapture()
Returns the receiver's stack trace capture. |
SerWrapper<Throwable> |
getWrapper()
Returns the receiver's throwable (wrapper). |
int |
hashCode()
|
void |
setServerMessage(String serverMessage)
Sets the receiver's server-localized message to the given one. |
void |
setServerName(String serverName)
Sets the receiver's server class name to the given one. |
void |
setServerString(String serverString)
Sets the receiver's server string representation to the given one. |
void |
setTraceCapture(String[] traceCapture)
Set the receiver's stack trace capture to the given one. |
void |
setWrapper(SerWrapper<Throwable> wrapper)
Set the receiver's throwable (wrapper) to the given one. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteProperties(Throwable throwable)
RemoteException that
wraps the given throwable.
throwable - The throwable, which may be null.public RemoteProperties()
| Method Detail |
|---|
public void setWrapper(SerWrapper<Throwable> wrapper)
wrapper - The throwable (wrapper), which may be null.public SerWrapper<Throwable> getWrapper()
public void setTraceCapture(String[] traceCapture)
traceCapture - The capture, which may be null.public String[] getTraceCapture()
public void setServerMessage(String serverMessage)
serverMessage - The message, which may be null.public String getServerMessage()
public void setServerString(String serverString)
serverString - The string, which may be null.public String getServerString()
public void setServerName(String serverName)
serverName - The name, which may be null.public String getServerName()
public Throwable getThrowable()
RemoteException.
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||