private String getRequestHandlerString(final IRequestHandler requestHandler)
{
AppendingStringBuffer sb = new AppendingStringBuffer(128);
if (requestHandler instanceof ListenerInterfaceRequestHandler)
{
ListenerInterfaceRequestHandler listener = (ListenerInterfaceRequestHandler)requestHandler;
sb.append("Interface[component: ");
sb.append(Classes.simpleName(listener.getComponent().getClass()));
sb.append("(");
sb.append(listener.getComponent().getPageRelativePath());
sb.append("), page: ");
sb.append(listener.getPage().getClass().getName());
sb.append("(");
sb.append(listener.getPage().getId());
sb.append("), interface: ");
sb.append(listener.getListenerInterface().getName());
sb.append(".");
sb.append(listener.getListenerInterface().getMethod().getName());
sb.append("]");
}
else if (requestHandler instanceof BookmarkablePageRequestHandler)
{
BookmarkablePageRequestHandler pageRequestHandler = (BookmarkablePageRequestHandler)requestHandler;