public class GeneralClientCapabilities
extends java.lang.Object
Since 3.16.0
| Constructor and Description |
|---|
GeneralClientCapabilities() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
MarkdownCapabilities |
getMarkdown()
Client capabilities specific to the client's markdown parser.
|
java.util.List<java.lang.String> |
getPositionEncodings()
The position encodings supported by the client.
|
RegularExpressionsCapabilities |
getRegularExpressions()
Client capabilities specific to regular expressions.
|
StaleRequestCapabilities |
getStaleRequestSupport()
Client capability that signals how the client handles stale requests
(e.g.
|
int |
hashCode() |
void |
setMarkdown(MarkdownCapabilities markdown)
Client capabilities specific to the client's markdown parser.
|
void |
setPositionEncodings(java.util.List<java.lang.String> positionEncodings)
The position encodings supported by the client.
|
void |
setRegularExpressions(RegularExpressionsCapabilities regularExpressions)
Client capabilities specific to regular expressions.
|
void |
setStaleRequestSupport(StaleRequestCapabilities staleRequestSupport)
Client capability that signals how the client handles stale requests
(e.g.
|
java.lang.String |
toString() |
@Pure public RegularExpressionsCapabilities getRegularExpressions()
Since 3.16.0
public void setRegularExpressions(RegularExpressionsCapabilities regularExpressions)
Since 3.16.0
@Pure public MarkdownCapabilities getMarkdown()
Since 3.16.0
public void setMarkdown(MarkdownCapabilities markdown)
Since 3.16.0
@Pure public StaleRequestCapabilities getStaleRequestSupport()
Since 3.17.0
public void setStaleRequestSupport(StaleRequestCapabilities staleRequestSupport)
Since 3.17.0
@Pure public java.util.List<java.lang.String> getPositionEncodings()
To keep the protocol backwards compatible the following applies: if the value 'utf-16' is missing from the array of position encodings servers can assume that the client supports UTF-16. UTF-16 is therefore a mandatory encoding.
If omitted it defaults to [PositionEncodingKind.UTF16].
Implementation considerations: since the conversion from one encoding into another requires the content of the file / line the conversion is best done where the file is read which is usually on the server side.
See PositionEncodingKind for some predefined position encoding kinds.
Since 3.17.0
public void setPositionEncodings(java.util.List<java.lang.String> positionEncodings)
To keep the protocol backwards compatible the following applies: if the value 'utf-16' is missing from the array of position encodings servers can assume that the client supports UTF-16. UTF-16 is therefore a mandatory encoding.
If omitted it defaults to [PositionEncodingKind.UTF16].
Implementation considerations: since the conversion from one encoding into another requires the content of the file / line the conversion is best done where the file is read which is usually on the server side.
See PositionEncodingKind for some predefined position encoding kinds.
Since 3.17.0
@Pure public java.lang.String toString()
toString in class java.lang.Object@Pure public boolean equals(java.lang.Object obj)
equals in class java.lang.Object@Pure public int hashCode()
hashCode in class java.lang.Object