cbr.service
Class PrivilegedGet

java.lang.Object
  extended bycbr.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
 

Field Detail

url_

private URL url_
The URL from which the data is read.

Constructor Detail

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.
Method Detail

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.