-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add request mapping details as index child elements to controller bean
- Loading branch information
1 parent
85afe5c
commit 1863a16
Showing
6 changed files
with
119 additions
and
36 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
...a/org/springframework/ide/vscode/boot/java/requestmapping/RequestMappingIndexElement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2025 Broadcom | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Broadcom - initial API and implementation | ||
*******************************************************************************/ | ||
package org.springframework.ide.vscode.boot.java.requestmapping; | ||
|
||
import org.springframework.ide.vscode.commons.protocol.spring.AbstractSpringIndexElement; | ||
|
||
public class RequestMappingIndexElement extends AbstractSpringIndexElement { | ||
|
||
private final String path; | ||
private final String[] httpMethods; | ||
private final String[] contentTypes; | ||
private final String[] acceptTypes; | ||
|
||
public RequestMappingIndexElement(String path, String[] httpMethods, String[] contentTypes, String[] acceptTypes) { | ||
this.path = path; | ||
this.httpMethods = httpMethods; | ||
this.contentTypes = contentTypes; | ||
this.acceptTypes = acceptTypes; | ||
} | ||
|
||
public String getPath() { | ||
return path; | ||
} | ||
|
||
public String[] getHttpMethods() { | ||
return httpMethods; | ||
} | ||
|
||
public String[] getContentTypes() { | ||
return contentTypes; | ||
} | ||
|
||
public String[] getAcceptTypes() { | ||
return acceptTypes; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...test-projects/test-request-mapping-symbols/src/main/java/org/test/SimpleMappingClass.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...symbols/src/main/java/org/test/inheritance/ControllerAsSubclassAndInterfaceHierarchy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters