Home
last modified time | relevance | path

Searched refs:sc (Results 1 – 12 of 12) sorted by path

/unit/src/java/nginx/unit/
H A DIncludeResponseWrapper.java70 public void setStatus(int sc) in setStatus() argument
72 trace("setStatus: " + sc); in setStatus()
77 public void setStatus(int sc, String sm) in setStatus() argument
79 trace("setStatus: " + sc + "; " + sm); in setStatus()
H A DResponse.java367 sendError(sc, null); in sendError()
373 trace("sendError: " + sc + ", " + msg); in sendError()
379 setStatus(sc); in sendError()
384 if (sc != SC_NO_CONTENT && sc != SC_NOT_MODIFIED && in sendError()
385 sc != SC_PARTIAL_CONTENT && sc >= SC_OK) in sendError()
517 public void setStatus(int sc) in setStatus() argument
519 trace("setStatus: " + sc); in setStatus()
525 setStatus(req_info_ptr, sc); in setStatus()
533 public void setStatus(int sc, String sm) in setStatus() argument
535 trace("setStatus: " + sc + "; " + sm); in setStatus()
[all …]
/unit/src/java/nginx/unit/websocket/server/
H A DUpgradeUtil.java88 public static void doUpgrade(WsServerContainer sc, HttpServletRequest req, in doUpgrade() argument
181 wsHandler.preInit(ep, perSessionServerEndpointConfig, sc, wsRequest, in doUpgrade()
H A DWsContextListener.java35 ServletContext sc = sce.getServletContext(); in contextInitialized() local
38 if (sc.getAttribute(Constants.SERVER_CONTAINER_SERVLET_CONTEXT_ATTRIBUTE) == null) { in contextInitialized()
45 ServletContext sc = sce.getServletContext(); in contextDestroyed() local
46 Object obj = sc.getAttribute(Constants.SERVER_CONTAINER_SERVLET_CONTEXT_ATTRIBUTE); in contextDestroyed()
H A DWsFilter.java36 private transient WsServerContainer sc; field in WsFilter
41 sc = (WsServerContainer) getServletContext().getAttribute( in init()
51 if (!sc.areEndpointsRegistered() || in doFilter()
69 WsMappingResult mappingResult = sc.findMapping(path); in doFilter()
78 UpgradeUtil.doUpgrade(sc, req, resp, mappingResult.getConfig(), in doFilter()
H A DWsSci.java47 WsServerContainer sc = init(ctx, true); in onStartup() local
116 sc.addEndpoint(config); in onStartup()
120 sc.addEndpoint(clazz); in onStartup()
131 WsServerContainer sc = new WsServerContainer(servletContext); in init() local
134 Constants.SERVER_CONTAINER_SERVLET_CONTEXT_ATTRIBUTE, sc); in init()
136 servletContext.addListener(new WsSessionListener(sc)); in init()
143 return sc; in init()
/unit/src/java/
H A Dnxt_jni_Response.c77 jlong req_info_ptr, jint sc);
853 jint sc) in nxt_java_Response_setStatus() argument
862 req->response->status = sc; in nxt_java_Response_setStatus()
/unit/src/nodejs/unit-http/
H A Dunit.cpp708 uint8_t sc[2]; in create_websocket_frame() local
720 nxt_unit_websocket_read(ws, sc, 2); in create_websocket_frame()
723 (((uint16_t) sc[0]) << 8) | sc[1]); in create_websocket_frame()
1043 uint32_t opcode, sc; in websocket_send_frame() local
1060 sc = napi.get_value_uint32(napi.get_named_property(frame, in websocket_send_frame()
1062 status_code[0] = (sc >> 8) & 0xFF; in websocket_send_frame()
1063 status_code[1] = sc & 0xFF; in websocket_send_frame()
/unit/src/
H A Dnxt_java.c286 char *sc = memchr(str.start, ':', str.length); in nxt_java_start() local
287 if (sc == NULL && str.start[0] == '/') { in nxt_java_start()
297 if (sc == NULL && str.start[0] != '/') { in nxt_java_start()
326 if (sc == NULL) { in nxt_java_start()
/unit/test/java/forward/
H A Dapp.java38 public void init(ServletConfig sc) in init() argument
41 id = sc.getInitParameter("id"); in init()
/unit/test/java/include/
H A Dapp.java39 public void init(ServletConfig sc) in init() argument
42 id = sc.getInitParameter("id"); in init()
/unit/test/java/url_pattern/
H A Dapp.java16 public void init(ServletConfig sc) in init() argument
19 id = sc.getInitParameter("id"); in init()