jenkins.plugins.ui_samples
Class JavaScriptProxy
java.lang.Object
jenkins.plugins.ui_samples.UISample
jenkins.plugins.ui_samples.JavaScriptProxy
- All Implemented Interfaces:
- ExtensionPoint, Action, Describable<UISample>, ModelObject
@Extension
public class JavaScriptProxy
- extends UISample
"Export" Java objects to JavaScript in the browser as a proxy object, so that
you can make ajax-calls to the server later.
- Author:
- Kohsuke Kawaguchi
|
Method Summary |
String |
getDescription()
Returns a paragraph of natural text that describes this sample. |
int |
increment(int n)
The annotation exposes this method to JavaScript proxy. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaScriptProxy
public JavaScriptProxy()
getDescription
public String getDescription()
- Description copied from class:
UISample
- Returns a paragraph of natural text that describes this sample.
Interpreted as HTML.
- Specified by:
getDescription in class UISample
increment
@JavaScriptMethod
public int increment(int n)
- The annotation exposes this method to JavaScript proxy.
Copyright © 2004-2012. All Rights Reserved.