本文整理了Java中ro.pippo.core.Response.getHttpServletResponse
方法的一些代码示例,展示了Response.getHttpServletResponse
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.getHttpServletResponse
方法的具体详情如下:
包路径:ro.pippo.core.Response
类名称:Response
方法名:getHttpServletResponse
[英]Returns the servlet response.
[中]返回servlet响应。
代码示例来源:origin: pippo-java/pippo
/**
* Gets the character encoding of the response.
*
* @return the character encoding
*/
public String getCharacterEncoding() {
return getHttpServletResponse().getCharacterEncoding();
}
代码示例来源:origin: pippo-java/pippo
/**
* Sets the character encoding of the response.
*
* @param charset
* @return the response
*/
public Response characterEncoding(String charset) {
checkCommitted();
getHttpServletResponse().setCharacterEncoding(charset);
return this;
}
代码示例来源:origin: pippo-java/pippo
private HttpServletResponse getHttpServletResponse() {
return Response.get().getHttpServletResponse();
}
代码示例来源:origin: pippo-java/pippo
@Override
protected boolean acceptWebSocket(Request request, Response response) throws IOException, ServletException {
return super.acceptWebSocket(request, response) && webSocketFactory
.acceptWebSocket(request.getHttpServletRequest(), response.getHttpServletResponse());
}
代码示例来源:origin: pippo-java/pippo
private void processWebSocketRequest(Request request, Response response) {
HttpServletRequest servletRequest = request.getHttpServletRequest();
HttpServletResponse servletResponse = response.getHttpServletResponse();
WebSocketHttpExchange exchange = new ServletWebSocketHttpExchange(servletRequest, servletResponse, peerConnections);
// exchange.putAttachment(HandshakeUtil.PATH_PARAMS, Collections.<String, String>emptyMap());
Handshake handshake = getHandshake(exchange);
exchange.upgradeChannel((connection, serverExchange) -> {
WebSocketChannel channel = handshake.createChannel(exchange, connection, exchange.getBufferPool());
peerConnections.add(channel);
createWebSocketAdapter(request).onConnect(exchange, channel);
});
handshake.handshake(exchange);
}
代码示例来源:origin: ro.pippo/pippo-session-cookie
private HttpServletResponse getHttpServletResponse() {
return Response.get().getHttpServletResponse();
}
代码示例来源:origin: gitblit/fathom
@Override
public void handle(Context context) {
HttpServletRequest request = context.getRequest().getHttpServletRequest();
HttpServletResponse response = context.getResponse().getHttpServletResponse();
OIDCServletHttpFacade facade = new OIDCServletHttpFacade(request, response);
内容来源于网络,如有侵权,请联系作者删除!