-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PLUGINAPI-42 Introduce framework agnostic types for Http extensions
- Use new types for identity providers, deprecate javax methods - Introduce HttpFilter class and deprecate ServletFilter which is using javax.servlet.* - Add new methods required by filters in SonarQube - Deprecate javax.servlet usage in org.sonar.api.security package Co-authored-by: Eric Giffon <[email protected]> Co-authored-by: Alain Kermis <[email protected]> Co-authored-by: Antoine Vinot <[email protected]> Co-authored-by: Jacek Poreda <[email protected]>
- Loading branch information
1 parent
f2fff9a
commit 42ca0a6
Showing
20 changed files
with
1,091 additions
and
21 deletions.
There are no files selected for viewing
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
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
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
69 changes: 69 additions & 0 deletions
69
plugin-api/src/main/java/org/sonar/api/server/http/Cookie.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,69 @@ | ||
/* | ||
* Sonar Plugin API | ||
* Copyright (C) 2009-2023 SonarSource SA | ||
* mailto:info AT sonarsource DOT com | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 3 of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with this program; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
*/ | ||
package org.sonar.api.server.http; | ||
|
||
/** | ||
* Framework-agnostic definition of a cookie. | ||
* Creates a cookie, a small amount of information sent by a servlet to | ||
* a Web browser, saved by the browser, and later sent back to the server. | ||
* A cookie's value can uniquely | ||
* identify a client, so cookies are commonly used for session management. | ||
* | ||
* @since 9.16 | ||
**/ | ||
public interface Cookie { | ||
|
||
/** | ||
* Returns the name of the cookie. The name cannot be changed after | ||
* creation. | ||
*/ | ||
String getName(); | ||
|
||
/** | ||
* Gets the current value of this Cookie. | ||
*/ | ||
String getValue(); | ||
|
||
/** | ||
* Returns the path on the server | ||
* to which the browser returns this cookie. The | ||
* cookie is visible to all subpaths on the server. | ||
*/ | ||
String getPath(); | ||
|
||
/** | ||
* Returns <code>true</code> if the browser is sending cookies | ||
* only over a secure protocol, or <code>false</code> if the | ||
* browser can send cookies using any protocol. | ||
*/ | ||
boolean isSecure(); | ||
|
||
/** | ||
* Checks whether this Cookie has been marked as <i>HttpOnly</i>. | ||
*/ | ||
boolean isHttpOnly(); | ||
|
||
/** | ||
* Gets the maximum age in seconds of this Cookie. | ||
*/ | ||
int getMaxAge(); | ||
|
||
|
||
} |
Oops, something went wrong.