public class OperationAuthReader implements RequestMappingReader {
@Override
public void execute(RequestMappingContext context) {
AuthorizationContext authorizationContext = (AuthorizationContext) context.get("authorizationContext");
HandlerMethod handlerMethod = context.getHandlerMethod();
String requestMappingPattern = (String) context.get("requestMappingPattern");
List<com.wordnik.swagger.model.Authorization> authorizations = newArrayList();
if (null != authorizationContext) {
authorizations = authorizationContext.getAuthorizationsForPath(requestMappingPattern);
}
ApiOperation apiOperationAnnotation = handlerMethod.getMethodAnnotation(ApiOperation.class);
if (null != apiOperationAnnotation && null != apiOperationAnnotation.authorizations()) {