More meaningful .toString() implementations
This commit is contained in:
parent
e753f35965
commit
ce52ffdd33
|
@ -60,4 +60,10 @@ public class VirtualHttpContentFactory implements HttpContent.Factory
|
|||
{
|
||||
return (_resource != null) && (path != null) && path.endsWith(_matchSuffix);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return String.format("%s@%x(factory=%s, resource=%s, matchSuffix=%s, contentType=%s)", this.getClass().getName(), this.hashCode(), _factory, _resource, _matchSuffix, _contentType);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -827,6 +827,12 @@ public class ResourceService
|
|||
_redirectWelcome = redirectWelcome;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return String.format("%s@%x(contentFactory=%s, dirAllowed=%b, redirectWelcome=%b)", this.getClass().getName(), this.hashCode(), this._contentFactory, this._dirAllowed, this._redirectWelcome);
|
||||
}
|
||||
|
||||
public void setWelcomeFactory(WelcomeFactory welcomeFactory)
|
||||
{
|
||||
_welcomeFactory = welcomeFactory;
|
||||
|
|
Loading…
Reference in New Issue