Examples of PathParam


Examples of javax.websocket.server.PathParam


    private static String[] pathParams(final Method method) {
        String[] params = new String[method.getParameterTypes().length];
        for (int i = 0; i < method.getParameterTypes().length; ++i) {
            PathParam param = getPathParam(method, i);
            if (param != null) {
                params[i] = param.value();
            }
        }
        return params;
    }
View Full Code Here

Examples of javax.websocket.server.PathParam

            for (int i = 0; i < positions.length; ++i) {
                Class type = method.getParameterTypes()[i];
                Annotation[] annotations = method.getParameterAnnotations()[i];
                for(int j = 0; j < annotations.length; ++j) {
                    if(annotations[j] instanceof PathParam) {
                        PathParam param = (PathParam) annotations[j];
                        if(!paths.contains(param.value())) {
                            JsrWebSocketLogger.ROOT_LOGGER.pathTemplateNotFound(endpointClass, param, method, paths);
                        }
                    }
                }
                if (positions[i] == null || type == null || type == String.class) {
View Full Code Here

Examples of javax.websocket.server.PathParam


    private static String[] pathParams(final Method method) {
        String[] params = new String[method.getParameterTypes().length];
        for (int i = 0; i < method.getParameterTypes().length; ++i) {
            PathParam param = getPathParam(method, i);
            if (param != null) {
                params[i] = param.value();
            }
        }
        return params;
    }
View Full Code Here

Examples of javax.websocket.server.PathParam

            for (int i = 0; i < positions.length; ++i) {
                Class type = method.getParameterTypes()[i];
                Annotation[] annotations = method.getParameterAnnotations()[i];
                for(int j = 0; j < annotations.length; ++j) {
                    if(annotations[j] instanceof PathParam) {
                        PathParam param = (PathParam) annotations[j];
                        if(!paths.contains(param.value())) {
                            JsrWebSocketLogger.ROOT_LOGGER.pathTemplateNotFound(endpointClass, param, method, paths);
                        }
                    }
                }
                if (positions[i] == null || type == null || type == String.class) {
View Full Code Here

Examples of javax.websocket.server.PathParam


    private static String[] pathParams(final Method method) {
        String[] params = new String[method.getParameterTypes().length];
        for (int i = 0; i < method.getParameterTypes().length; ++i) {
            PathParam param = getPathParam(method, i);
            if (param != null) {
                params[i] = param.value();
            }
        }
        return params;
    }
View Full Code Here

Examples of javax.websocket.server.PathParam

            for (int i = 0; i < positions.length; ++i) {
                Class type = method.getParameterTypes()[i];
                Annotation[] annotations = method.getParameterAnnotations()[i];
                for(int j = 0; j < annotations.length; ++j) {
                    if(annotations[j] instanceof PathParam) {
                        PathParam param = (PathParam) annotations[j];
                        if(!paths.contains(param.value())) {
                            JsrWebSocketLogger.ROOT_LOGGER.pathTemplateNotFound(endpointClass, param, method, paths);
                        }
                    }
                }
                if (positions[i] == null || type == null || type == String.class) {
View Full Code Here

Examples of javax.websocket.server.PathParam


    private static String[] pathParams(final Method method) {
        String[] params = new String[method.getParameterTypes().length];
        for (int i = 0; i < method.getParameterTypes().length; ++i) {
            PathParam param = getPathParam(method, i);
            if (param != null) {
                params[i] = param.value();
            }
        }
        return params;
    }
View Full Code Here

Examples of javax.websocket.server.PathParam

    public static final IJsrParamId INSTANCE = new JsrPathParamId();

    @Override
    public boolean process(Param param, JsrCallable callable) throws InvalidSignatureException
    {
        PathParam pathparam = param.getAnnotation(PathParam.class);
        if(pathparam != null)
        {
            param.bind(Role.PATH_PARAM);
            param.setPathParamName(pathparam.value());
            return true;
        }

        return false;
    }
View Full Code Here

Examples of javax.ws.rs.PathParam

      if (defaultValue != null) defaultVal = defaultValue.value();

      QueryParam query;
      HeaderParam header;
      MatrixParam matrix;
      PathParam uriParam;
      CookieParam cookie;
      FormParam formParam;
      Suspend suspend;


      if ((query = findAnnotation(annotations, QueryParam.class)) != null)
      {
         return new QueryParamInjector(type, genericType, injectTarget, query.value(), defaultVal, encode, annotations, providerFactory);
      }
      else if ((header = findAnnotation(annotations, HeaderParam.class)) != null)
      {
         return new HeaderParamInjector(type, genericType, injectTarget, header.value(), defaultVal, annotations, providerFactory);
      }
      else if ((formParam = findAnnotation(annotations, FormParam.class)) != null)
      {
         return new FormParamInjector(type, genericType, injectTarget, formParam.value(), defaultVal, annotations, providerFactory);
      }
      else if ((cookie = findAnnotation(annotations, CookieParam.class)) != null)
      {
         return new CookieParamInjector(type, genericType, injectTarget, cookie.value(), defaultVal, annotations, providerFactory);
      }
      else if ((uriParam = findAnnotation(annotations, PathParam.class)) != null)
      {
         return new PathParamInjector(type, genericType, injectTarget, uriParam.value(), defaultVal, encode, annotations, providerFactory);
      }
      else if (findAnnotation(annotations, Form.class) != null)
      {
         return new FormInjector(type, providerFactory);
      }
View Full Code Here

Examples of javax.ws.rs.PathParam

      boolean useBody)
  {
    QueryParam query;
    HeaderParam header;
    MatrixParam matrix;
    PathParam uriParam;
    CookieParam cookie;
    FormParam formParam;

    // boolean isEncoded = FindAnnotation.findAnnotation(annotations,
    // Encoded.class) != null;

    if ((query = FindAnnotation.findAnnotation(annotations, QueryParam.class)) != null)
    {
      addParameter(type, annotations, MethodParamType.QUERY_PARAMETER, query
          .value());
    } else if ((header = FindAnnotation.findAnnotation(annotations,
        HeaderParam.class)) != null)
    {
      addParameter(type, annotations, MethodParamType.HEADER_PARAMETER,
          header.value());
    } else if ((cookie = FindAnnotation.findAnnotation(annotations,
        CookieParam.class)) != null)
    {
      addParameter(type, annotations, MethodParamType.COOKIE_PARAMETER,
          cookie.value());
    } else if ((uriParam = FindAnnotation.findAnnotation(annotations,
        PathParam.class)) != null)
    {
      addParameter(type, annotations, MethodParamType.PATH_PARAMETER,
          uriParam.value());
    } else if ((matrix = FindAnnotation.findAnnotation(annotations,
        MatrixParam.class)) != null)
    {
      addParameter(type, annotations, MethodParamType.MATRIX_PARAMETER,
          matrix.value());
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.