|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.otfeed.protocol.request.AbstractRequest
org.otfeed.protocol.request.LoginRequest
public class LoginRequest
Request to login. Its the only one that does not have session part.
Nested Class Summary | |
---|---|
static class |
LoginRequest.Response
|
Nested classes/interfaces inherited from class org.otfeed.protocol.request.AbstractRequest |
---|
AbstractRequest.JobStatus |
Constructor Summary | |
---|---|
LoginRequest(int requestId,
java.lang.String u,
java.lang.String p)
Represents response to the login request. |
Method Summary | |
---|---|
void |
fireCompleted(OTError error)
Internal method: used to wake up threads sleeping in waitForCompletion() . |
OTError |
getError()
|
java.lang.String |
getPassword()
|
java.lang.String |
getUsername()
|
void |
handleError(OTError error)
|
boolean |
isCompleted()
|
void |
waitForCompletion()
Convenience method: blocks calling thread until request finishes. |
boolean |
waitForCompletion(long millis)
Convenience method: blocks calling thread until request finishes, or the specified number of milliseconds elapses. |
void |
writeRequest(java.nio.ByteBuffer out)
Abstract method that writes out request body. |
Methods inherited from class org.otfeed.protocol.request.AbstractRequest |
---|
getCommand, getRequestId, handleMessage, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LoginRequest(int requestId, java.lang.String u, java.lang.String p)
Method Detail |
---|
public java.lang.String getUsername()
public java.lang.String getPassword()
public void writeRequest(java.nio.ByteBuffer out)
AbstractRequest
super.writeRequest
at the top of its method body.
writeRequest
in class AbstractRequest
out
- output buffer.public void handleError(OTError error)
public final OTError getError()
public final void fireCompleted(OTError error)
waitForCompletion()
.
public final boolean isCompleted()
public final boolean waitForCompletion(long millis)
millis
- how long to wait for completion.public final void waitForCompletion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |