public class JupyterRESTClient extends Object
Modifier | Constructor and Description |
---|---|
protected |
JupyterRESTClient(String host,
int port) |
protected |
JupyterRESTClient(String host,
int port,
boolean isSSLEnabled) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.client.Client |
getClient() |
Contents |
getContents(String path) |
String |
getHost() |
List |
getKernels() |
int |
getPort() |
javax.ws.rs.core.Response |
login(String token) |
void |
setClient(javax.ws.rs.client.Client client) |
void |
setHost(String host) |
void |
setPort(int port) |
protected JupyterRESTClient(String host, int port)
protected JupyterRESTClient(String host, int port, boolean isSSLEnabled)
public String getHost()
public void setHost(String host)
public int getPort()
public void setPort(int port)
public javax.ws.rs.client.Client getClient()
public void setClient(javax.ws.rs.client.Client client)
public javax.ws.rs.core.Response login(String token) throws URISyntaxException, MalformedURLException
public Contents getContents(String path) throws org.apache.http.HttpException
path
- path to the notebook eg: /example.ipynborg.apache.http.HttpException
- throw exception on failurepublic List getKernels() throws org.apache.http.HttpException
org.apache.http.HttpException
- throw exception on failureCopyright © 2016–2020. All rights reserved.