Class HelloGetResource
java.lang.Object
test.HelloGetResource
- All Implemented Interfaces:
hudson.remoting.Callable<String, IOException>, Serializable, org.jenkinsci.remoting.RoleSensitive
public class HelloGetResource
extends Object
implements hudson.remoting.Callable<String, IOException>
Gets a single resource as a string.
This method retrieves resource URL and then uses low-level methods to read it.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall()voidcheckRoles(org.jenkinsci.remoting.RoleChecker checker) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.remoting.Callable
getChannelOrFail, getOpenChannelOrFail
-
Constructor Details
-
HelloGetResource
Deprecated. -
HelloGetResource
public HelloGetResource(boolean useCaches) Constructor.- Parameters:
useCaches- Iffalse, caching in theURLConnectionwill be disabled. A default value will be used otherwise.- Since:
- 1.1
-
-
Method Details
-
call
- Specified by:
callin interfacehudson.remoting.Callable<String, IOException>- Throws:
IOException
-
checkRoles
- Specified by:
checkRolesin interfaceorg.jenkinsci.remoting.RoleSensitive- Throws:
SecurityException
-