Package org.springframework.web.bind.annotation

Examples of org.springframework.web.bind.annotation.RequestMethod


   */
  public RequestMethodsRequestCondition getMatchingCondition(HttpServletRequest request) {
    if (methods.isEmpty()) {
      return this;
    }
    RequestMethod incomingRequestMethod = RequestMethod.valueOf(request.getMethod());
    for (RequestMethod method : methods) {
      if (method.equals(incomingRequestMethod)) {
        return new RequestMethodsRequestCondition(method);
      }
    }
View Full Code Here


   */
  public RequestMethodsRequestCondition getMatchingCondition(HttpServletRequest request) {
    if (this.methods.isEmpty()) {
      return this;
    }
    RequestMethod incomingRequestMethod = getRequestMethod(request);
    if(incomingRequestMethod != null) {
      for (RequestMethod method : this.methods) {
        if (method.equals(incomingRequestMethod)) {
          return new RequestMethodsRequestCondition(method);
        }
View Full Code Here

        if ("hashCode".equals(method.getName())) {
            return methodRequestHandlers.hashCode();
        }

        ClientRequestHandlerInfo clientRequestHandlerInfo = methodRequestHandlers.get(method);
        RequestMethod httpMethod = clientRequestHandlerInfo.getMethod();

        String uri = client.createUrl(clientRequestHandlerInfo.getPattern());
        Map<String, Object> urlVariables = new HashMap<String, Object>();
        Object request = null;
View Full Code Here

                                uri.append("&");
                            }
                        }
                    }

                    RequestMethod requestMethod = requestMapping.method()[0];

                    if (RequestMethod.POST.equals(requestMethod) || RequestMethod.PUT.equals(requestMethod)
                            || RequestMethod.DELETE.equals(requestMethod)) {
                        responseClazz = restResource.responseClass();
                    }
View Full Code Here

public abstract class SwaggerResponseMessageReader implements RequestMappingReader {

  @Override
  public void execute(RequestMappingContext context) {
    SwaggerGlobalSettings swaggerGlobalSettings = (SwaggerGlobalSettings) context.get("swaggerGlobalSettings");
    RequestMethod currentHttpMethod = (RequestMethod) context.get("currentHttpMethod");
    HandlerMethod handlerMethod = context.getHandlerMethod();

    Collection<ResponseMessage> responseMessages = newArrayList();
    responseMessages.addAll(read(swaggerGlobalSettings, currentHttpMethod, handlerMethod));
    context.put("responseMessages", responseMessages);
View Full Code Here

public class OperationHttpMethodReader implements RequestMappingReader {
  private static final Logger log = LoggerFactory.getLogger(OperationHttpMethodReader.class);

  @Override
  public void execute(RequestMappingContext context) {
    RequestMethod currentHttpMethod = (RequestMethod) context.get("currentHttpMethod");
    HandlerMethod handlerMethod = context.getHandlerMethod();

    String requestMethod = currentHttpMethod.toString();
    ApiOperation apiOperationAnnotation = handlerMethod.getMethodAnnotation(ApiOperation.class);

    if (apiOperationAnnotation != null && !StringUtils.isBlank(apiOperationAnnotation.httpMethod())) {
      String apiMethod = apiOperationAnnotation.httpMethod();
      try {
View Full Code Here

  @Override
  public RequestMethodsRequestCondition getMatchingCondition(HttpServletRequest request) {
    if (this.methods.isEmpty()) {
      return this;
    }
    RequestMethod incomingRequestMethod = getRequestMethod(request);
    if (incomingRequestMethod != null) {
      for (RequestMethod method : this.methods) {
        if (method.equals(incomingRequestMethod)) {
          return new RequestMethodsRequestCondition(method);
        }
View Full Code Here

TOP

Related Classes of org.springframework.web.bind.annotation.RequestMethod

Copyright © 2018 www.massapicom. 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.