Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Cameo
cameo
Commits
d6109054
Commit
d6109054
authored
Dec 15, 2021
by
legoc
Browse files
Some Server methods set package protected
parent
6fd5dcec
Changes
1
Hide whitespace changes
Inline
Side-by-side
cameo-api/src/main/java/fr/ill/ics/cameo/base/Server.java
View file @
d6109054
...
...
@@ -148,7 +148,7 @@ public class Server {
return
contextImpl
;
}
public
JSONObject
parse
(
byte
[]
data
)
throws
ParseException
{
JSONObject
parse
(
byte
[]
data
)
throws
ParseException
{
return
parser
.
parse
(
Messages
.
parseString
(
data
));
}
...
...
@@ -181,7 +181,7 @@ public class Server {
serverVersion
[
2
]
=
JSON
.
getInt
(
response
,
Messages
.
VersionResponse
.
REVISION
);
}
public
RequestSocket
createRequestSocket
(
String
endpoint
)
throws
SocketException
{
RequestSocket
createRequestSocket
(
String
endpoint
)
throws
SocketException
{
RequestSocket
requestSocket
=
new
RequestSocket
(
contextImpl
,
timeout
,
parser
);
requestSocket
.
connect
(
endpoint
);
...
...
@@ -721,7 +721,7 @@ public class Server {
* @param key
* @param value
*/
public
void
storeKeyValue
(
int
applicationId
,
String
key
,
String
value
)
{
void
storeKeyValue
(
int
applicationId
,
String
key
,
String
value
)
{
JSONObject
request
=
Messages
.
createStoreKeyValueRequest
(
applicationId
,
key
,
value
);
JSONObject
response
=
requestSocket
.
requestJSON
(
request
);
...
...
@@ -735,7 +735,7 @@ public class Server {
* @throws UndefinedApplicationException
* @throws UndefinedKeyException
*/
public
String
getKeyValue
(
int
applicationId
,
String
key
)
throws
UndefinedApplicationException
,
UndefinedKeyException
{
String
getKeyValue
(
int
applicationId
,
String
key
)
throws
UndefinedApplicationException
,
UndefinedKeyException
{
JSONObject
request
=
Messages
.
createGetKeyValueRequest
(
applicationId
,
key
);
JSONObject
response
=
requestSocket
.
requestJSON
(
request
);
...
...
@@ -761,7 +761,7 @@ public class Server {
* @throws UndefinedApplicationException
* @throws UndefinedKeyException
*/
public
void
removeKey
(
int
applicationId
,
String
key
)
throws
UndefinedApplicationException
,
UndefinedKeyException
{
void
removeKey
(
int
applicationId
,
String
key
)
throws
UndefinedApplicationException
,
UndefinedKeyException
{
JSONObject
request
=
Messages
.
createRemoveKeyRequest
(
applicationId
,
key
);
JSONObject
response
=
requestSocket
.
requestJSON
(
request
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment