本文整理了Java中org.restlet.Restlet.handle
方法的一些代码示例,展示了Restlet.handle
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Restlet.handle
方法的具体详情如下:
包路径:org.restlet.Restlet
类名称:Restlet
方法名:handle
[英]Handles a call. Creates an empty Response object and then invokes #handle(Request,Response).
[中]处理电话。创建一个空响应对象,然后调用#句柄(请求,响应)。
代码示例来源:origin: org.restlet.osgi/org.restlet
@Override
public void handle(Request request, Response response) {
wrappedRestlet.handle(request, response);
}
代码示例来源:origin: org.restlet/org.restlet
@Override
public void handle(Request request, Response response) {
wrappedRestlet.handle(request, response);
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Handles a call.
*
* @param request
* The request to handle.
* @param onReceivedCallback
* The callback invoked upon request reception.
*/
public final void handle(Request request, Uniform onReceivedCallback) {
Response response = new Response(request);
handle(request, response, onReceivedCallback);
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Handles a call. Creates an empty {@link Response} object and then invokes
* {@link #handle(Request, Response)}.
*
* @param request
* The request to handle.
* @return The returned response.
*/
public final Response handle(Request request) {
Response response = new Response(request);
handle(request, response);
return response;
}
代码示例来源:origin: org.geoserver/rest
public void handle(Request req, Response res){
Restlet restlet = (Restlet)getBean();
restlet.handle(req, res);
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Returns a representation of the resource at the target URI. Leverages the
* client dispatcher of the parent directory's context.
*
* @param resourceUri
* The URI of the target resource.
* @return A response with the representation if success.
*/
private Response getRepresentation(String resourceUri) {
return getClientDispatcher().handle(
new Request(Method.GET, resourceUri));
}
代码示例来源:origin: com.whizzosoftware.hobson.hub/hobson-hub-setup
public void handle(Request request, Response response) {
if (request.getResourceRef().getScheme().equalsIgnoreCase("clap")) {
request.getAttributes().put("org.restlet.clap.classLoader", bundleClassLoader);
}
dispatcher.handle(request, response);
}
}
代码示例来源:origin: org.metaeffekt.dcc/dcc-agent-core
@Override
public void handle(Request request, Response response) {
LOG.debug("MethodRouter [{}] received request method: [{}]"
, uriPattern, request.getMethod());
Restlet target = routes.get(request.getMethod());
if (target != null) {
target.handle(request, response);
} else {
LOG.debug("No route for request method: [{}]", request.getMethod());
response.setStatus(Status.CLIENT_ERROR_NOT_FOUND);
}
}
代码示例来源:origin: org.restlet/org.restlet
@Override
public void handle(Request request, Response response) {
super.handle(request, response);
if (getHelper() != null) {
getHelper().handle(request, response);
}
}
代码示例来源:origin: org.restlet.osgi/org.restlet
@Override
public void handle(Request request, Response response) {
super.handle(request, response);
if (getHelper() != null) {
getHelper().handle(request, response);
}
}
代码示例来源:origin: org.restlet.android/org.restlet.ext.atom
/**
* Retrieves a resource representation.
*
* @param uri
* The resource URI.
* @return The resource representation.
*/
public Representation getResource(String uri) {
return getClientDispatcher().handle(new Request(Method.GET, uri))
.getEntity();
}
代码示例来源:origin: org.restlet/org.restlet
@Override
public void handle(Request request, Response response) {
super.handle(request, response);
if (getHelper() != null) {
getHelper().handle(request, response);
}
}
代码示例来源:origin: org.restlet.osgi/org.restlet
@Override
public void handle(Request request, Response response) {
super.handle(request, response);
if (getHelper() != null) {
getHelper().handle(request, response);
}
}
代码示例来源:origin: org.restlet.osgi/org.restlet
@Override
public void handle(Request request, Response response) {
super.handle(request, response);
if (getNext() != null) {
getNext().handle(request, response);
}
}
代码示例来源:origin: org.restlet.jee/org.restlet.ext.atom
/**
* Deletes a resource.
*
* @param uri
* The resource URI.
* @return The result status.
*/
public Status deleteResource(String uri) {
return getClientDispatcher().handle(new Request(Method.DELETE, uri))
.getStatus();
}
代码示例来源:origin: org.restlet.jee/org.restlet.ext.atom
/**
* Retrieves a resource representation.
*
* @param uri
* The resource URI.
* @return The resource representation.
*/
public Representation getResource(String uri) {
return getClientDispatcher().handle(new Request(Method.GET, uri))
.getEntity();
}
代码示例来源:origin: org.restlet.android/org.restlet.ext.atom
/**
* Updates a resource representation.
*
* @param uri
* The resource URI.
* @return The resource representation.
*/
public Status updateResource(String uri,
Representation updatedRepresentation) {
return getClientDispatcher().handle(
new Request(Method.PUT, uri, updatedRepresentation))
.getStatus();
}
代码示例来源:origin: org.restlet/org.restlet
@Override
public void handle(Request request, Response response) {
super.handle(request, response);
if (getTarget() != null) {
getTarget().handle(request, response);
}
}
代码示例来源:origin: org.restlet.android/org.restlet.ext.atom
/**
* Deletes a resource.
*
* @param uri
* The resource URI.
* @return The result status.
*/
public Status deleteResource(String uri) {
return getClientDispatcher().handle(new Request(Method.DELETE, uri))
.getStatus();
}
代码示例来源:origin: org.restlet.jee/org.restlet.ext.atom
/**
* Updates a resource representation.
*
* @param uri
* The resource URI.
* @return The resource representation.
*/
public Status updateResource(String uri,
Representation updatedRepresentation) {
return getClientDispatcher().handle(
new Request(Method.PUT, uri, updatedRepresentation))
.getStatus();
}
内容来源于网络,如有侵权,请联系作者删除!