|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectthinkmap.datasource.util.AbstractDataSource
public abstract class AbstractDataSource
AbstractDataSource helps with the creation of new datasources. It handles
an incoming request by packaging it into a Message, which can be used to
easily craft a response. It also calls beginMessage and
endMessage, dispatching to request-type-specific methods which
implement the logic of the datasource.
Message| Constructor Summary | |
|---|---|
AbstractDataSource()
Creates a new AbstractDataSource object. |
|
| Method Summary | |
|---|---|
IEntityHandler |
createRequest(IEntityHandler callback)
Create a request. |
protected void |
processCustomRequest(Message message,
IEntityHandler callback)
Handle a custom request. |
protected void |
processEntityRequest(Message message,
IEntityHandler callback)
Handle an Entity request. |
protected void |
processIdRequest(Message message,
IEntityHandler callback)
Handle an ID request. |
protected void |
processMetadataRequest(Message message,
IEntityHandler callback)
Handle a metadata request. |
protected void |
processRelatedRequest(Message message,
IEntityHandler callback)
Handle a related request. |
protected void |
processRequest(Message message,
IEntityHandler callback)
Dispatches to the request-type-specific method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDataSource()
| Method Detail |
|---|
public IEntityHandler createRequest(IEntityHandler callback)
IDataSource
createRequest in interface IDataSourcecallback - The IEntityHandler that will recieve the response.
protected void processRequest(Message message,
IEntityHandler callback)
message - The request as packaged into a message.callback - The IEntityHandler which will receive the response.
protected void processMetadataRequest(Message message,
IEntityHandler callback)
message - The incoming request, packaged into a handy object.callback - The IEntityHandler which will receive the response.
protected void processIdRequest(Message message,
IEntityHandler callback)
message - The incoming request, packaged into a handy object.callback - The IEntityHandler which will receive the response.
protected void processEntityRequest(Message message,
IEntityHandler callback)
message - The incoming request, packaged into a handy object.callback - The IEntityHandler which will receive the response.
protected void processRelatedRequest(Message message,
IEntityHandler callback)
message - The incoming request, packaged into a handy object.callback - The IEntityHandler which will receive the response.
protected void processCustomRequest(Message message,
IEntityHandler callback)
message - The incoming request, packaged into a handy object.callback - The IEntityHandler which will receive the response.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||