本文整理了Java中org.restlet.Request.setClientInfo
方法的一些代码示例,展示了Request.setClientInfo
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.setClientInfo
方法的具体详情如下:
包路径:org.restlet.Request
类名称:Request
方法名:setClientInfo
[英]Sets the client-specific information.
[中]设置特定于客户端的信息。
代码示例来源:origin: org.restlet.osgi/org.restlet
@Override
public void setClientInfo(ClientInfo clientInfo) {
wrappedRequest.setClientInfo(clientInfo);
}
代码示例来源:origin: apache/attic-polygene-java
void updateQueryRequest( Request request )
{
request.setClientInfo( info );
// Update cache information
if( cache != null )
{
cache.updateQueryConditions( request );
}
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Sets the client-specific information.
*
* @param clientInfo
* The client-specific information.
* @see Request#setClientInfo(ClientInfo)
*/
public void setClientInfo(ClientInfo clientInfo) {
getRequest().setClientInfo(clientInfo);
}
代码示例来源:origin: apache/attic-polygene-java
void updateCommandRequest( Request request )
{
request.setClientInfo( info );
// Update cache information
if( cache != null )
{
cache.updateCommandConditions( request );
}
// Add all custom headers
if (!requestHeaders.isEmpty())
request.getAttributes().put( "org.restlet.http.headers", requestHeaders );
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Handles the call by cloning the prototype request, setting the method and
* entity.
*
* @param method
* The request method to use.
* @param entity
* The request entity to set.
* @param clientInfo
* The client preferences.
* @return The optional response entity.
*/
protected Representation handle(Method method, Representation entity,
ClientInfo clientInfo) {
// Prepare the request by cloning the prototype request
Request request = createRequest();
request.setMethod(method);
request.setEntity(entity);
request.setClientInfo(clientInfo);
// Actually handle the call
Response response = handleOutbound(request);
return handleInbound(response);
}
代码示例来源:origin: DeviceConnect/DeviceConnect-Android
org.restlet.security.User user = new org.restlet.security.User(client.getClientId());
clientInfo.setUser(user);
request.setClientInfo(clientInfo);
代码示例来源:origin: org.restlet.osgi/org.restlet
request.setClientInfo(clientInfo);
代码示例来源:origin: org.restlet.osgi/org.restlet
request.setClientInfo(new ClientInfo(responseVariants));
代码示例来源:origin: org.restlet.jee/org.restlet.ext.jaxrs
request.setClientInfo(new ClientInfo(responseVariants));
内容来源于网络,如有侵权,请联系作者删除!