org.restlet.Request.setClientInfo()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(137)

本文整理了Java中org.restlet.Request.setClientInfo方法的一些代码示例,展示了Request.setClientInfo的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.setClientInfo方法的具体详情如下:
包路径:org.restlet.Request
类名称:Request
方法名:setClientInfo

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));

相关文章