Package | Description |
---|---|
org.waarp.gateway.kernel.rest | |
org.waarp.openr66.protocol.http.rest |
Http Rest R66 interface
|
org.waarp.openr66.protocol.http.rest.client |
R66 REST HTTP Client package
|
org.waarp.openr66.protocol.http.rest.handler |
Http Rest method handlers for R66
|
Modifier and Type | Method and Description |
---|---|
protected void |
HttpRestHandler.bodyChunk(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpContent chunk)
Method that get a chunk of data
|
void |
RestArgument.checkBaseAuthent(HmacSha256 hmacSha256,
String extraKey,
long maxInterval)
This implementation of authentication is as follow: if X_AUTH is included
in the URI or Header
0) Check that timestamp is correct (|curtime - timestamp| < maxinterval) from ARG_X_AUTH_TIMESTAMP, if maxInterval is 0, not mandatory 1) Get all URI args (except ARG_X_AUTH_KEY itself, but including timestamp), lowered case, in alphabetic order 2) Add an extra Key if not null (from ARG_X_AUTH_INTERNALKEY) 3) Compute an hash (SHA-1 or SHA-256) 4) Compare this hash with ARG_X_AUTH_KEY |
protected abstract void |
HttpRestHandler.checkConnection(io.netty.channel.ChannelHandlerContext ctx)
To be used for instance to check correctness of connection
Note that ARG_METHOD is only set from current request. |
void |
RestArgument.checkTime(long maxInterval)
Check Time only (no signature)
|
protected static String |
RestArgument.computeKey(HmacSha256 hmacSha256,
String extraKey,
TreeMap<String,String> treeMap,
String argPath) |
protected abstract E |
DataModelRestMethodHandler.createItem(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body)
To be used only in create mode.
|
protected void |
DataModelRestMethodHandler.delete(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body)
delete one item
|
abstract void |
RestMethodHandler.endParsingRequest(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body)
Called when all Data were passed to the handler
|
void |
DataModelRestMethodHandler.endParsingRequest(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body) |
protected void |
DataModelRestMethodHandler.getAll(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body)
Get all items, according to a possible filter
|
static String[] |
RestArgument.getBaseAuthent(HmacSha256 hmacSha256,
io.netty.handler.codec.http.QueryStringEncoder encoder,
String user,
String extraKey)
The encoder is completed with extra necessary URI part containing
ARG_X_AUTH_TIMESTAMP & ARG_X_AUTH_KEY
|
protected abstract E |
DataModelRestMethodHandler.getItem(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body)
For Read or Update, should include a select() from the database.
|
protected void |
DataModelRestMethodHandler.getOne(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body)
Get one item according to id
|
protected abstract DbPreparedStatement |
DataModelRestMethodHandler.getPreparedStatement(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body)
For getAll access
|
protected void |
DataModelRestMethodHandler.post(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body)
Create one item
|
protected void |
DataModelRestMethodHandler.put(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body)
Update one item according to id
|
Modifier and Type | Method and Description |
---|---|
protected void |
HttpRestR66Handler.checkConnection(io.netty.channel.ChannelHandlerContext ctx) |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
HttpRestR66ClientResponseHandler.action(io.netty.channel.Channel channel,
RestArgument ra,
HttpRestAbstractR66Handler.ACTIONS_TYPE act)
Method calls when a action REST command is raised as answer
|
protected void |
HttpRestR66ClientResponseHandler.actionFromResponse(io.netty.channel.Channel channel)
Setting the RestArgument to the RestFuture and validating RestFuture.
|
protected abstract boolean |
HttpRestR66ClientResponseHandler.afterDbDelete(io.netty.channel.Channel channel,
RestArgument ra)
Method calls when a REST Delete command is raised as answer
|
protected abstract boolean |
HttpRestR66ClientResponseHandler.afterDbGet(io.netty.channel.Channel channel,
RestArgument ra)
Method calls when a REST Get command is raised as answer
|
protected abstract boolean |
HttpRestR66ClientResponseHandler.afterDbGetMultiple(io.netty.channel.Channel channel,
RestArgument ra)
Method calls when a REST GetMultiple command is raised as answer
|
protected abstract boolean |
HttpRestR66ClientResponseHandler.afterDbOptions(io.netty.channel.Channel channel,
RestArgument ra)
Method calls when a REST Options command is raised as answer
|
protected abstract boolean |
HttpRestR66ClientResponseHandler.afterDbPost(io.netty.channel.Channel channel,
RestArgument ra)
Method calls when a REST Post command is raised as answer
|
protected abstract boolean |
HttpRestR66ClientResponseHandler.afterDbPut(io.netty.channel.Channel channel,
RestArgument ra)
Method calls when a REST Put command is raised as answer
|
protected abstract boolean |
HttpRestR66ClientResponseHandler.afterError(io.netty.channel.Channel channel,
RestArgument ra)
Method calls when a REST command is in error
|
protected boolean |
HttpRestR66ClientResponseHandler.delete(io.netty.channel.Channel channel,
RestArgument ra) |
protected boolean |
HttpRestR66ClientResponseHandler.get(io.netty.channel.Channel channel,
RestArgument ra) |
protected boolean |
HttpRestR66ClientResponseHandler.options(io.netty.channel.Channel channel,
RestArgument ra) |
protected boolean |
HttpRestR66ClientResponseHandler.post(io.netty.channel.Channel channel,
RestArgument ra) |
protected boolean |
HttpRestR66ClientResponseHandler.put(io.netty.channel.Channel channel,
RestArgument ra) |
Modifier and Type | Method and Description |
---|---|
void |
HttpRestBusinessR66Handler.endParsingRequest(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body) |
void |
HttpRestInformationR66Handler.endParsingRequest(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body) |
void |
HttpRestLogR66Handler.endParsingRequest(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body) |
void |
HttpRestServerR66Handler.endParsingRequest(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body) |
void |
HttpRestConfigR66Handler.endParsingRequest(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body) |
void |
HttpRestControlR66Handler.endParsingRequest(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body) |
void |
HttpRestBandwidthR66Handler.endParsingRequest(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body) |
protected void |
DbHostConfigurationR66RestMethodHandler.put(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body) |
protected void |
DbConfigurationR66RestMethodHandler.put(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body) |
Copyright © 2009–2022 Waarp. All rights reserved.