public class AjaxTerm extends Object
Modifier and Type | Field and Description |
---|---|
org.kohsuke.stapler.framework.adjunct.AdjunctManager |
adjuncts |
Constructor and Description |
---|
AjaxTerm(javax.servlet.ServletContext context) |
Modifier and Type | Method and Description |
---|---|
org.kohsuke.stapler.HttpResponse |
doDestroy()
If there's any existing session, destroy it.
|
org.kohsuke.stapler.HttpResponse |
doIndex()
When '/' is requested, show the login page or the terminal page depending on whether the session has already been created.
|
org.kohsuke.stapler.HttpResponse |
doLocal(int w,
int h)
Start a terminal with a local shell.
|
org.kohsuke.stapler.HttpResponse |
doLogin(String host,
int port,
String user,
String password,
int w,
int h)
Start a terminal with remote SSH.
|
void |
doU(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
This shuttles page update and keyboard interactions.
|
public org.kohsuke.stapler.HttpResponse doIndex()
public void doU(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws Exception
Exception
public org.kohsuke.stapler.HttpResponse doLocal(@QueryParameter int w, @QueryParameter int h) throws Exception
Exception
public org.kohsuke.stapler.HttpResponse doLogin(@QueryParameter String host, @QueryParameter int port, @QueryParameter String user, @QueryParameter String password, @QueryParameter int w, @QueryParameter int h) throws Exception
Exception
public org.kohsuke.stapler.HttpResponse doDestroy()
Copyright © 2015. All rights reserved.