Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add String to AttributeList converter #194

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

hughjfchen
Copy link

Add a String to javax.management.AttributeList parser which can parse a sring and construct the appropriate AttributeList object.

The string must be in following format:
attribute-name1=attribute-type1:attribute-value1,attribute-name2=attribute-type2:attribute-value2...
The attribute types could be as following:
I: int
L: long
F: float
D: double
B: boolean
T: short
S: String
Y: byte
C: char
If there're sepcial characters within the attribute value, the following escape rules applied:
1.for "," and "=",put three PATH_ESCAPE characters before it
2.for ":",put four PATH_ESCAPE characters before it

Please focus on the agent/core/src/main/java/org/jolokia/converter/object/StringToObjectConverter.java file and ignore the other websphere specific files.
Thanks,

@rhuss
Copy link
Member

rhuss commented Sep 11, 2015

Thanks for the PR ! Will have a look asap, but probably not before 1.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants