-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: support standalone seamless ha
Signed-off-by: bodong.ybd <[email protected]>
- Loading branch information
1 parent
764569d
commit f750caf
Showing
12 changed files
with
508 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package io.jackey; | ||
|
||
public class ClientCapaConfig { | ||
private final boolean disabled; | ||
private final boolean redirect; | ||
|
||
public static final ClientCapaConfig DEFAULT = new ClientCapaConfig(); | ||
public static final ClientCapaConfig DISABLED = new ClientCapaConfig(true, false); | ||
|
||
public ClientCapaConfig() { | ||
this(false, true); | ||
} | ||
|
||
public ClientCapaConfig(boolean disabled, boolean redirect) { | ||
this.disabled = disabled; | ||
this.redirect = redirect; | ||
} | ||
|
||
public final boolean isDisabled() { | ||
return disabled; | ||
} | ||
|
||
public boolean isRedirect() { | ||
return redirect; | ||
} | ||
|
||
public static ClientCapaConfig withRedirect() { | ||
return new ClientCapaConfig(false, true); | ||
} | ||
} |
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
Oops, something went wrong.