public class BSFClient extends Object implements Client<BSFRequest,BSFResponse>
BSFClient class.
Constructor and Description |
---|
BSFClient() |
Modifier and Type | Method and Description |
---|---|
void |
close()
close
|
void |
connect(InetAddress address,
int port,
int timeout)
connect
|
String |
getBsfEngine() |
String[] |
getFileExtensions() |
String |
getFileName() |
String |
getLangClass() |
String |
getRunType() |
String |
getServiceName() |
BSFResponse |
receiveBanner()
receiveBanner
|
BSFResponse |
sendRequest(BSFRequest request)
sendRequest
|
void |
setBsfEngine(String bsfEngine) |
void |
setFileExtensions(String[] fileExtensions) |
void |
setFileName(String fileName) |
void |
setLangClass(String langClass) |
void |
setRunType(String runType) |
void |
setServiceName(String serviceName) |
public void close()
close
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Client<BSFRequest,BSFResponse>
public void connect(InetAddress address, int port, int timeout) throws IOException, Exception
connect
connect
in interface Client<BSFRequest,BSFResponse>
address
- a InetAddress
object.port
- a int.timeout
- a int.IOException
- if any.Exception
- if any.public BSFResponse receiveBanner() throws IOException, Exception
receiveBanner
receiveBanner
in interface Client<BSFRequest,BSFResponse>
BSFResponse
object.IOException
- if any.Exception
- if any.public BSFResponse sendRequest(BSFRequest request) throws IOException, Exception
sendRequest
sendRequest
in interface Client<BSFRequest,BSFResponse>
request
- a BSFRequest
object.BSFResponse
object.IOException
- if any.Exception
- if any.public String getServiceName()
public void setServiceName(String serviceName)
public String getFileName()
public void setFileName(String fileName)
public String getLangClass()
public void setLangClass(String langClass)
public String getBsfEngine()
public void setBsfEngine(String bsfEngine)
public String[] getFileExtensions()
public void setFileExtensions(String[] fileExtensions)
public String getRunType()
public void setRunType(String runType)
Copyright © 2016. All rights reserved.