public final class DefaultHost extends Object implements Host
The class is immutable and thread-safe.
| Constructor and Description |
|---|
DefaultHost(Domain dmn)
Public ctor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorized(String user,
String password)
Can this user login in with this credentials?
|
void |
close() |
InputStream |
fetch(URI uri)
Find resource and return its input stream.
|
String |
toString() |
public DefaultHost(Domain dmn)
dmn - The domainpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic InputStream fetch(URI uri) throws IOException
fetch in interface Hosturi - Name of resourceIOException - If some error with I/O insidepublic boolean authorized(String user, String password) throws IOException
authorized in interface Hostuser - User namepassword - PasswordIOException - If some error with I/O insideCopyright © 2012 s3auth.com. All Rights Reserved.