Examples of path()


Examples of io.mola.galimatias.URL.path()

        URL output = input;
        if (output.isHierarchical()) {
            output = output
                    .withUsername(decodeUnreserved(output.username()))
                    .withPassword(decodeUnreserved(output.password()))
                    .withPath(decodeUnreserved(output.path()));
        }
        return output
                .withQuery(decodeUnreserved(output.query()))
                .withFragment(decodeUnreserved(output.fragment()));
    }
View Full Code Here

Examples of io.netty.handler.codec.http.QueryStringDecoder.path()

    private final Map<String, List<String>> parameters;

    public MappedRequest(FullHttpRequest request) {
        this.method = request.getMethod();
        QueryStringDecoder queryStringDecoder = new QueryStringDecoder(request.getUri());
        this.path = URLParser.returnPath(queryStringDecoder.path());
        this.parameters = queryStringDecoder.parameters();
        this.content = (request.content() != null ? request.content().toString(CharsetUtil.UTF_8) : "");
    }

    public boolean matches(HttpMethod method, String path) {
View Full Code Here

Examples of javax.ws.rs.client.WebTarget.path()

    public void retrieveSessionToken() {
        //TODO: support authentication with JAX-RS 2.0
        //authenticator.get().addAuthenticator(client, username.get(), password.get());
        WebTarget managementResource = this.client.target(getSessionsUri());
        JsonObject result = managementResource
                .path("sessions")
                .request(MediaType.APPLICATION_JSON)
                .header("X-Requested-By", "")
                .post(Entity.entity(Json.createObjectBuilder().build(), MediaType.APPLICATION_JSON), JsonObject.class);
        JsonObject extraProps = result.getJsonObject("extraProperties");
View Full Code Here

Examples of javax.ws.rs.core.UriBuilder.path()

      RESTServiceDiscovery ret, LinkResource service, String rel) {
    Map<String, ? extends Object> pathParameters = entity.pathParameters();
    // do we need any path parameters?
    UriBuilder uriBuilder = uriInfo.getBaseUriBuilder().path(m.getDeclaringClass());
    if(m.isAnnotationPresent(Path.class))
      uriBuilder.path(m);
    URI uri;
    List<String> paramNames = ((UriBuilderImpl)uriBuilder).getPathParamNamesInDeclarationOrder();
    if(paramNames.isEmpty())
      uri = uriBuilder.build();
    else if(pathParameters.size() >= paramNames.size())
View Full Code Here

Examples of name.pehl.karaka.client.rest.UrlBuilder.path()

    {
        Activity activity = action.getActivity();
        UrlBuilder urlBuilder = new UrlBuilder().module("rest").path("activities");
        if (activity.isTransient())
        {
            urlBuilder.path("start");
        }
        else
        {
            urlBuilder = urlBuilder.path(activity.getId(), "start");
        }
View Full Code Here

Examples of net.csdn.annotation.rest.At.path()

                            restController.setErrorHandlerKey(new Tuple<Class<ApplicationController>, Method>(clzz, method));
                        }

                        At at = method.getAnnotation(At.class);
                        if (at == null) continue;
                        String url = at.path()[0];
                        RestRequest.Method[] httpMethods = at.types();

                        for (RestRequest.Method httpMethod : httpMethods) {
                            Tuple<Class<ApplicationController>, Method> tuple = new Tuple<Class<ApplicationController>, Method>(clzz, method);
                            restController.registerHandler(httpMethod, url, tuple);
View Full Code Here

Examples of net.hydromatic.optiq.jdbc.OptiqSchema.path()

    final List<SqlMoniker> result = new ArrayList<SqlMoniker>();
    final Map<String, OptiqSchema> schemaMap = schema.getSubSchemaMap();

    for (String subSchema : schemaMap.keySet()) {
      result.add(
          new SqlMonikerImpl(schema.path(subSchema), SqlMonikerType.SCHEMA));
    }

    for (String table : schema.getTableNames()) {
      result.add(
          new SqlMonikerImpl(schema.path(table), SqlMonikerType.TABLE));
View Full Code Here

Examples of net.loyin.jFinal.anatation.RouteBind.path()

    List<Class> list= ClassSearcher.findClasses();
    if(list!=null&&list.isEmpty()==false){
      for(Class clz:list){
        RouteBind rb=(RouteBind)clz.getAnnotation(RouteBind.class);
        if(rb!=null){
          me.add(rb.path(),clz,rb.viewPath());
        }else if(clz.getSuperclass()!=null){
          if(clz.getSuperclass()==Controller.class||clz.getSuperclass().getSuperclass()==Controller.class){
            me.add("/"+clz.getSimpleName().replace("Controller", "").toLowerCase(),clz);
          }
        }
View Full Code Here

Examples of net.sf.sahi.util.BrowserType.path()

        boolean isSingleSession = "true".equals(request.getParameter("useSingleSession"));
        final int threads = getThreads(request.getParameter("threads"), browserType.capacity());

        // launches browser with pre configured browser settings
        if(browserType != null){
          suite = prepareSuite(suitePath, base, browserType.path(), session.id(), browserType.options(),
          browserType.processName(), (""+threads), browserType.useSystemProxy(), isSingleSession, request);
        }
        return suite;
  }
View Full Code Here

Examples of net.sourceforge.processdash.hier.PropertyKey.path()

      PropertyKey aKey = hier.getChildKey(PropertyKey.ROOT, a);
      for (int b = 0; b < 3; b++) {
        PropertyKey bKey = hier.getChildKey(aKey, b);
        for (int c = 0; c < 3; c++) {
          PropertyKey cKey = hier.getChildKey(bKey, c);
          if (!checkTimeData(cKey.path(), expectedTimes[a][b][c]))
            foundErr = true;
        }
      }
    }
    if (foundErr)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.