|
JCas v0.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cas.JCasClient
Tries to authenticate against a CAS Server.
Field Summary | |
protected String |
agent
The agent |
protected boolean |
closeConnection
The doClose for the connection |
protected String |
password
The password |
protected int |
port
The port to contact |
protected String |
requestCookie
The request cookie |
protected JCasResponseTag |
response
The response from the server. |
protected String |
scheme
The scheme name |
protected String |
server
The server to contact |
protected Socket |
socket
The socket of the connection |
protected String |
user
The user |
protected boolean |
useSSL
Whether to use SSL |
Constructor Summary | |
JCasClient()
Creates a new instance of JCasClient |
Method Summary | |
void |
close()
Closes the connection. |
void |
doRequest()
Actually does the request. |
String |
getAgent()
|
boolean |
getCloseConnection()
|
String |
getErrorCode()
|
String |
getErrorMessage()
|
String |
getPassword()
|
int |
getPort()
|
String |
getRequestCookie()
|
String |
getResponseCookie()
|
boolean |
getReturnCode()
|
String |
getScheme()
|
String |
getServer()
|
String |
getServerName()
|
String |
getUser()
|
boolean |
isConnected()
Returns true if client is connected. |
boolean |
isSSL()
|
static void |
main(String[] args)
|
void |
setAgent(String agent)
|
void |
setCloseConnection(boolean b)
|
void |
setPassword(String password)
|
void |
setPort(int port)
|
void |
setRequestCookie(String cookie)
|
void |
setScheme(String scheme)
|
void |
setServer(String server)
|
void |
setSSL(boolean useSSL)
|
void |
setUser(String user)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Socket socket
protected String server
protected int port
protected String scheme
protected String user
protected String password
protected String agent
protected String requestCookie
protected boolean closeConnection
protected JCasResponseTag response
protected boolean useSSL
Constructor Detail |
public JCasClient()
Method Detail |
public void setServer(String server)
public String getServer()
public void setPort(int port)
public int getPort()
public void setScheme(String scheme)
public void setUser(String user)
public void setPassword(String password)
public void setAgent(String agent)
public void setRequestCookie(String cookie)
public void setCloseConnection(boolean b)
public boolean isSSL()
public void setSSL(boolean useSSL)
public String getScheme()
public String getUser()
public String getPassword()
public String getAgent()
public String getRequestCookie()
public boolean getCloseConnection()
public String getResponseCookie() throws IOException
IOException
public String getServerName() throws IOException
IOException
public boolean getReturnCode() throws IOException
IOException
public String getErrorMessage() throws IOException
IOException
public String getErrorCode() throws IOException
IOException
public boolean isConnected()
public void doRequest() throws IOException
IOException
public void close()
public static void main(String[] args)
args
- the command line arguments
|
JCas v0.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |