|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectshared.remotecall.RemoteCall
shared.remotecall.ClientRequest
An object of this class is sent from the calendar client to the calendar server each time a request is made. This class encapsulates all the needed information so that the server can response with a serialized server response object.
| Field Summary | |
static int |
ADD_EVENT
|
static int |
DELETE_EVENT
|
static int |
FLUSH_DATABASE
|
static int |
MODIFY_EVENT
|
static int |
RELOAD_DATABASE
|
static int |
REQUEST_ALL_EVENTS
|
static int |
REQUEST_EVENTS
|
static int |
SHUTDOWN_SERVER
|
| Constructor Summary | |
ClientRequest()
Simple constructor, creates a client request object requesting events up from the current date. |
|
ClientRequest(int iAction)
Simple constructor, creates a client request object requesting events up from the current date. |
|
| Method Summary | |
boolean |
actionIs(int iAction)
This method is needed by the clanedar server to get the type of action requested. |
CalendarEvent |
getEvent()
This method returns the event object. |
int |
getNumEventsToRequest()
This method returns the maximum number of events the client wants to request. |
boolean |
match(CalendarEvent calendarEvent)
Checks if a specific calendar event matches this client request. |
boolean |
requestsNewEvents()
This method is needed by the calendar server to get the type of action requested. |
void |
setDateRange(java.util.Date dateRangeFrom,
java.util.Date dateRangeTo)
This method sets the date range to request. |
void |
setEvent(CalendarEvent event)
This method sets a calendar event object to be transfered to the calendar server because the event has been modified. |
void |
setMainRegexp(boolean bMainRegexp)
This method sets if the client contains a regexp from the main session window. |
void |
setNumEventsToRequest(int iNumEvents)
With this method the client can define the maximum number of events to request. |
void |
setRegexpAll(java.lang.String sRegexp)
This method compiles a specific pattern object to match with on the server part after serialization. |
void |
setRegexpCategory(java.lang.String sRegexp)
This method compiles a specific pattern object to match with on the server part after serialization. |
void |
setRegexpDate(java.lang.String sRegexp)
This method compiles a specific pattern object to match with on the server part after serialization. |
void |
setRegexpDescription(java.lang.String sRegexp)
This method compiles a specific pattern object to match with on the server part after serialization. |
void |
setRegexpPlace(java.lang.String sRegexp)
This method compiles a specific pattern object to match with on the server part after serialization. |
java.lang.String |
toString()
This method returns a representation the object as a string. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int REQUEST_EVENTS
public static final int REQUEST_ALL_EVENTS
public static final int MODIFY_EVENT
public static final int DELETE_EVENT
public static final int ADD_EVENT
public static final int RELOAD_DATABASE
public static final int FLUSH_DATABASE
public static final int SHUTDOWN_SERVER
| Constructor Detail |
public ClientRequest()
public ClientRequest(int iAction)
iAction - Specifies the request type of this request.| Method Detail |
public boolean actionIs(int iAction)
iAction - Specifies the action to test against.
public boolean requestsNewEvents()
public void setDateRange(java.util.Date dateRangeFrom,
java.util.Date dateRangeTo)
dateRangeFrom - Specifies the beginning date.dateRangeTo - Specifies the ending date.public void setEvent(CalendarEvent event)
event - Specifies an event to be transfered to the calendar server.public CalendarEvent getEvent()
public void setNumEventsToRequest(int iNumEvents)
iNumEvents - Specifies the maximum number of events to request.public int getNumEventsToRequest()
public void setMainRegexp(boolean bMainRegexp)
bMainRegexp - Set to true if the user used the main regexp field of the main GUI window.public void setRegexpAll(java.lang.String sRegexp)
sRegexp - Compiles a Pattern object with sRegexp as the regular expression.public void setRegexpCategory(java.lang.String sRegexp)
sRegexp - Compiles a Pattern object with sRegexp as the regular expression.public void setRegexpDescription(java.lang.String sRegexp)
sRegexp - Compiles a Pattern object with sRegexp as the regular expression.public void setRegexpPlace(java.lang.String sRegexp)
sRegexp - Compiles a Pattern object with sRegexp as the regular expression.public void setRegexpDate(java.lang.String sRegexp)
sRegexp - Compiles a Pattern object with sRegexp as the regular expression.public boolean match(CalendarEvent calendarEvent)
calendarEvent - Specifies the event to match against.
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||