cbr.service
Class PrivilegedGet
java.lang.Object
cbr.service.PrivilegedGet
- All Implemented Interfaces:
- PrivilegedAction
- public class PrivilegedGet
- extends Object
- implements PrivilegedAction
This class opens an URL input stream with a GET request.
- Version:
- "$Id: PrivilegedGet.java 1913 2007-08-08 02:41:53Z jpeters $"
- Author:
- Volker Roth
Field Summary |
private URL |
url_
The URL from which the data is read. |
Constructor Summary |
PrivilegedGet(URL url)
Creates an instance that opens the given URL. |
Method Summary |
Object |
run()
Opens the URL and returns an input stream to it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
url_
private URL url_
- The URL from which the data is read.
PrivilegedGet
public PrivilegedGet(URL url)
- Creates an instance that opens the given URL.
- Parameters:
url
- The url to open.
- Throws:
NullPointerException
- if no URL is given.
run
public Object run()
- Opens the URL and returns an input stream to it.
- Specified by:
run
in interface PrivilegedAction
- Returns:
- The InputStream or
null
.
Copyright © Fraunhofer Gesellschaft. All
Rights Reserved.