xlang v5.1 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
HttpServlet类 参考
HttpServlet 的协作图:
Collaboration graph

Public 成员函数

静态 Public 属性

详细描述

HttpServlet类 - 用于处理HTTP请求和WebSocket连接的基础服务类 该类定义了HTTP服务和WebSocket服务的基本接口和常量

在文件 HttpServlet.x5 行定义.

构造及析构函数说明

◆ HttpServlet() [1/2]

HttpServlet ( int  ,
  String 
)

◆ HttpServlet() [2/2]

HttpServlet ( int  )

成员函数说明

◆ doGet()

void doGet ( HttpServletRequest  ,
  HttpServletResponse 
)

◆ doPost()

void doPost ( HttpServletRequest  ,
  HttpServletResponse 
)

◆ finalize()

void finalize ( )

◆ onBinary()

void onBinary ( WebSocketSession  ,
  byte[] 
)

◆ onClose()

void onClose ( WebSocketSession  ,
  String 
)

◆ onError()

void onError ( WebSocketSession  )

◆ onMessage()

void onMessage ( WebSocketSession  ,
  String 
)

◆ onOpen()

void onOpen ( WebSocketSession  )

结构体成员变量说明

◆ FLAG_LOGERROR

const int FLAG_LOGERROR
static

在文件 HttpServlet.x9 行定义.

◆ FLAG_POSTSTREAM

const int FLAG_POSTSTREAM
static

在文件 HttpServlet.x8 行定义.

◆ FLAG_SERVLET

const int FLAG_SERVLET
static

在文件 HttpServlet.x10 行定义.

◆ FLAG_WEBSOCKETLET

const int FLAG_WEBSOCKETLET
static

在文件 HttpServlet.x11 行定义.