Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 101) sorted by relevance

12345

/unit/src/nodejs/unit-http/
H A Dwebsocket_router.js64 if (!path) {
74 path = this.pathToRegExp(path);
75 if (!(path instanceof RegExp)) {
78 var pathString = path.toString();
88 'path': path,
116 if (typeof(path) === 'string') {
117 if (path === '*') {
118 path = /^.*$/;
121 path = path.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
122 path = new RegExp('^' + path + '$');
[all …]
/unit/test/
H A Dtest_asgi_lifespan.py23 path = option.test_dir + '/python/lifespan/empty/' + prefix + name
24 open(path, 'a').close()
25 os.chmod(path, 0o777)
29 path = option.test_dir + '/python/lifespan/empty/' + prefix + name
30 exists = os.path.isfile(path)
32 os.remove(path)
36 path = option.test_dir + '/python/lifespan/empty/' + prefix + 'version'
38 with open(path, 'r') as f:
41 os.remove(path)
H A Dtest_python_procman.py32 def conf_proc(self, conf, path=None): argument
33 if path is None:
34 path = self.app_proc
36 assert 'success' in self.conf(conf, path), 'configure processes'
179 path = '/' + self.app_proc
180 assert 'error' in self.conf_get(path + '/max')
181 assert 'error' in self.conf_get(path + '/spare')
182 assert 'error' in self.conf_get(path + '/idle_timeout')
H A Dconftest.py101 option.current_dir = os.path.abspath(
102 os.path.join(os.path.dirname(__file__), os.pardir)
317 path = os.path.join(unit['temp_dir'], item)
319 public_dir(path)
321 if os.path.isfile(path) or stat.S_ISSOCK(os.stat(path).st_mode):
322 os.remove(path)
366 if not os.path.isfile(unitd):
376 if not os.path.isdir(state):
502 path = Log.get_path()
504 print('Path to unit.log:\n' + path + '\n')
[all …]
/unit/src/java/nginx/unit/websocket/server/
H A DUriTemplate.java44 public UriTemplate(String path) throws DeploymentException { in UriTemplate() argument
46 if (path == null || path.length() ==0 || !path.startsWith("/")) { in UriTemplate()
48 sm.getString("uriTemplate.invalidPath", path)); in UriTemplate()
51 StringBuilder normalized = new StringBuilder(path.length()); in UriTemplate()
55 String[] segments = path.split("/", -1); in UriTemplate()
72 "uriTemplate.emptySegment", path)); in UriTemplate()
90 "uriTemplate.invalidSegment", segment, path)); in UriTemplate()
H A DLocalStrings.properties18 serverContainer.duplicatePaths=Multiple Endpoints may not be deployed to the same path [{0}] : exis…
20 serverContainer.endpointDeploy=Endpoint class [{0}] deploying to path [{1}] in ServletContext [{2}]
22 serverContainer.missingEndpoint=An Endpoint instance has been request for path [{0}] but no matchin…
23 serverContainer.pojoDeploy=POJO class [{0}] deploying to path [{1}] in ServletContext [{2}]
24 … at path [{0}] in the ServletContext with context path [{1}] when the WebSocket ServerContainer is…
29 uriTemplate.duplicateParameter=The parameter [{0}] appears more than once in the path which is not …
30 uriTemplate.emptySegment=The path [{0}] contains one or more empty segments which are is not permit…
31 uriTemplate.invalidPath=The path [{0}] is not valid.
32 uriTemplate.invalidSegment=The segment [{0}] is not valid in the provided path [{1}]
H A DWsFilter.java62 String path; in doFilter() local
65 path = req.getServletPath(); in doFilter()
67 path = req.getServletPath() + pathInfo; in doFilter()
69 WsMappingResult mappingResult = sc.findMapping(path); in doFilter()
H A DWsServerContainer.java140 String path = sec.getPath(); in addEndpoint() local
144 sec.getDecoders(), path); in addEndpoint()
151 UriTemplate uriTemplate = new UriTemplate(path); in addEndpoint()
167 sm.getString("serverContainer.duplicatePaths", path, in addEndpoint()
173 ServerEndpointConfig old = configExactMatchMap.put(path, sec); in addEndpoint()
177 sm.getString("serverContainer.duplicatePaths", path, in addEndpoint()
203 String path = annotation.value(); in addEndpoint() local
226 sec = ServerEndpointConfig.Builder.create(pojo, path). in addEndpoint()
268 public WsMappingResult findMapping(String path) { in findMapping() argument
277 ServerEndpointConfig sec = configExactMatchMap.get(path); in findMapping()
[all …]
/unit/test/unit/
H A Dutils.py10 def public_dir(path): argument
11 os.chmod(path, 0o777)
13 for root, dirs, files in os.walk(path):
15 os.chmod(os.path.join(root, d), 0o777)
17 os.chmod(os.path.join(root, f), 0o777)
25 if not os.path.exists(f):
118 if os.path.exists(nspath):
/unit/test/java/path_translation/
H A Dapp.java34 String path = request.getParameter("path"); in doGet() local
36 if (path != null) { in doGet()
37 response.addHeader("X-Real-Path", "" + ctx.getRealPath(path)); in doGet()
38 response.addHeader("X-Resource", "" + ctx.getResource(path)); in doGet()
40 Set<String> paths = ctx.getResourcePaths(path); in doGet()
44 InputStream is = ctx.getResourceAsStream(path); in doGet()
/unit/src/java/nginx/unit/
H A DUnitSessionCookieConfig.java21 private String path; field in UnitSessionCookieConfig
52 public void setPath(String path) in setPath() argument
54 this.path = path; in setPath()
60 return path; in getPath()
H A DContext.java239 String path = null; in doGet() local
245 if (path == null) { in doGet()
261 && (path.equals("/WEB-INF") || path.startsWith("/WEB-INF/") in doGet()
262 || path.equals("/META-INF") || path.startsWith("/META-INF/"))) in doGet()
268 if (path.startsWith("/")) { in doGet()
269 path = path.substring(1); in doGet()
777 if (p.match(path)) { in findServlet()
783 req.setServletPath(path, p.pattern, path.substring(p.pattern.length())); in findServlet()
828 if (path.endsWith("/")) { in findServlet()
963 path = path.substring(context_path_.length()); in service()
[all …]
/unit/src/java/javax/websocket/
H A DWebSocketContainer.java39 Session connectToServer(Object endpoint, URI path) in connectToServer() argument
42 Session connectToServer(Class<?> annotatedEndpointClass, URI path) in connectToServer() argument
63 ClientEndpointConfig clientEndpointConfiguration, URI path) in connectToServer() argument
84 ClientEndpointConfig clientEndpointConfiguration, URI path) in connectToServer() argument
/unit/src/java/javax/websocket/server/
H A DDefaultServerEndpointConfig.java33 private final String path; field in DefaultServerEndpointConfig
42 Class<?> endpointClass, String path, in DefaultServerEndpointConfig() argument
48 this.path = path; in DefaultServerEndpointConfig()
73 return path; in getPath()
H A DServerEndpointConfig.java56 Class<?> endpointClass, String path) { in create() argument
57 return new Builder(endpointClass, path); in create()
62 private final String path; field in ServerEndpointConfig.Builder
74 String path) { in Builder() argument
76 this.path = path; in Builder()
80 return new DefaultServerEndpointConfig(endpointClass, path, in build()
/unit/src/
H A Dnxt_fs.c215 nxt_fs_unmount(const u_char *path) in nxt_fs_unmount() argument
217 if (nxt_slow_path(umount2((const char *) path, MNT_DETACH) < 0)) { in nxt_fs_unmount()
219 path, nxt_errno); in nxt_fs_unmount()
226 nxt_fs_unmount(const u_char *path) in nxt_fs_unmount() argument
228 if (nxt_slow_path(unmount((const char *) path, MNT_FORCE) < 0)) { in nxt_fs_unmount()
229 nxt_thread_log_error(NXT_LOG_WARN, "unmount(%s) %E", path, nxt_errno); in nxt_fs_unmount()
241 char path[PATH_MAX]; in nxt_fs_mkdir_all() local
247 dst = path; in nxt_fs_mkdir_all()
263 if (nxt_slow_path(nxt_fs_mkdir((u_char *) path, mode) != NXT_OK in nxt_fs_mkdir_all()
H A Dnxt_controller.c1040 path = req->parser.path; in nxt_controller_process_request()
1042 if (path.length > 1 && path.start[path.length - 1] == '/') { in nxt_controller_process_request()
1043 path.length--; in nxt_controller_process_request()
1047 && (path.length == 7 || path.start[7] == '/')) in nxt_controller_process_request()
1064 && (path.length == 13 || path.start[13] == '/')) in nxt_controller_process_request()
1090 if (path.length == 1 && path.start[0] == '/') { in nxt_controller_process_request()
1155 nxt_str_t *path) in nxt_controller_process_config() argument
1476 path->length -= p - path->start; in nxt_controller_process_cert()
1480 path = NULL; in nxt_controller_process_cert()
1774 || nxt_memcmp(path->start + path->length - 8, "/restart", 8) != 0) in nxt_controller_process_control()
[all …]
H A Dnxt_clone.c43 u_char path[PATH_MAX]; in nxt_clone_credential_setgroups() local
45 end = path + PATH_MAX; in nxt_clone_credential_setgroups()
46 p = nxt_sprintf(path, end, "/proc/%d/setgroups", child_pid); in nxt_clone_credential_setgroups()
50 nxt_alert(task, "error write past the buffer: %s", path); in nxt_clone_credential_setgroups()
54 fd = open((char *)path, O_RDWR); in nxt_clone_credential_setgroups()
64 nxt_alert(task, "open(%s): %E", path, nxt_errno); in nxt_clone_credential_setgroups()
75 nxt_alert(task, "write(%s): %E", path, nxt_errno); in nxt_clone_credential_setgroups()
/unit/test/unit/applications/lang/
H A Djava.py20 if not os.path.isdir(app_path):
35 if os.path.isdir(file_path):
43 if not os.path.isdir(web_inf_path):
51 if not os.path.isdir(classes_path):
H A Dphp.py17 if not os.path.exists(rootfs + '/app/php/'):
20 if not os.path.exists(rootfs + '/app/php/' + script):
H A Dpython.py28 if not os.path.exists(rootfs + '/app/python/'):
31 if not os.path.exists(rootfs + '/app/python/' + name):
/unit/auto/modules/
H A Dpython20 --lib-path=*) NXT_PYTHON_LIB_PATH="$value" ;;
27 --lib-path=DIRECTORY set directory path to libpython.so library
75 # "python-config --ldflags" may not contain path to libpython.
135 $NXT_PYTHON -c 'import os.path
143 for p in sys.path:
145 if os.path.basename(p) == pyver:
149 raise Exception("failed to compute sys.path mount points")
153 for p in sys.path:
H A Dphp19 --lib-path=*) NXT_PHP_LIB_PATH="$value" ;;
27 --lib-path=DIRECTORY set directory path to libphp.so library
95 $echo $0: error: --lib-static option requires --lib-path option.
112 # "php-config --ldflags" does not contain path to libphp, but
113 # contains usually path to libraries required by extensions.
/unit/src/python/
H A Dnxt_python.c83 char *path; in nxt_python_start() local
101 path = nxt_malloc(len + sizeof(pyvenv)); in nxt_python_start()
102 if (nxt_slow_path(path == NULL)) { in nxt_python_start()
107 nxt_memcpy(path, c->home, len); in nxt_python_start()
108 nxt_memcpy(path + len, pyvenv, sizeof(pyvenv)); in nxt_python_start()
110 pep405 = (access(path, R_OK) == 0); in nxt_python_start()
112 nxt_free(path); in nxt_python_start()
397 PyObject *path, *sys; in nxt_python_set_path() local
431 if (nxt_slow_path(path == NULL)) { in nxt_python_set_path()
437 ret = PyList_Insert(sys, 0, path); in nxt_python_set_path()
[all …]
/unit/test/java/multipart/
H A Dapp.java39 final String path = request.getParameter("destination"); in doPost() local
48 out = new FileOutputStream(new File(path + File.separator in doPost()
58 writer.println(fileName + " created at " + path); in doPost()

12345