Class OperationContext


  • public class OperationContext
    extends java.lang.Object
    • Constructor Detail

      • OperationContext

        public OperationContext​(OperationBuilder operationBuilder,
                                org.springframework.web.bind.annotation.RequestMethod requestMethod,
                                RequestMappingContext requestContext,
                                int operationIndex)
    • Method Detail

      • httpMethod

        public org.springframework.http.HttpMethod httpMethod()
      • operationIndex

        public int operationIndex()
      • getGlobalResponseMessages

        public java.util.List<ResponseMessage> getGlobalResponseMessages​(java.lang.String forHttpMethod)
      • getGlobalOperationParameters

        @Deprecated
        public java.util.List<Parameter> getGlobalOperationParameters()
        Deprecated.
        Returns:
        List
        Since:
        3.0
      • getGlobalRequestParameters

        public java.util.List<RequestParameter> getGlobalRequestParameters()
      • securityContext

        public java.util.List<SecurityContext> securityContext()
      • requestMappingPattern

        public java.lang.String requestMappingPattern()
      • getKnownModels

        public java.util.Map<java.lang.String,​java.util.Set<Model>> getKnownModels()
      • alternateFor

        public com.fasterxml.classmate.ResolvedType alternateFor​(com.fasterxml.classmate.ResolvedType resolved)
      • produces

        public java.util.Set<org.springframework.http.MediaType> produces()
      • consumes

        public java.util.Set<org.springframework.http.MediaType> consumes()
      • getIgnorableParameterTypes

        public java.util.Set<java.lang.Class> getIgnorableParameterTypes()
      • getName

        public java.lang.String getName()
      • getGroupName

        public java.lang.String getGroupName()
      • findAnnotation

        public <T extends java.lang.annotation.Annotation> java.util.Optional<T> findAnnotation​(java.lang.Class<T> annotation)
      • getReturnType

        public com.fasterxml.classmate.ResolvedType getReturnType()
      • findControllerAnnotation

        public <T extends java.lang.annotation.Annotation> java.util.Optional<T> findControllerAnnotation​(java.lang.Class<T> annotation)
      • findAllAnnotations

        public <T extends java.lang.annotation.Annotation> java.util.List<T> findAllAnnotations​(java.lang.Class<T> annotation)
      • globalResponsesFor

        public java.util.Collection<Response> globalResponsesFor​(org.springframework.http.HttpMethod httpMethod)