Separate web params from connector values
Posted: Wed Nov 16, 2016 9:12 pm
Hi Team
I have a CustomProtocolHandler implementation, the full connector values including the web params are being displayed in the editor-title of the header-bar, I only need to display connector values and not the web params, but I need the web params to be passed with the URL.
Example of how I access the document:
The url in CustomProtocolHandler implementation has null for the query which means the web params that I am passing are only being added as part of the connector URL path.
The following is displayed in the editor-title
testTarget-1-AUTHOR&username=user&token=ACCESS_TOKEN
What I need to display is only the connector values:
testTarget-1-AUTHOR
Accessing with a decoded url as shown below doesn't display the web parameters but it doesn't also add them as part of the query, so I loose them completely.
I have tried many different ways, encoding part of the url etc.. but at no success.
Ideally what I need is the connector values “testTarget-1-AUTHOR” to be part of the URL path and the web params “username=user&token=ACCESS_TOKEN” to be part of the query or any other property that allows me to access them in the CustomProtocolHandler implementation.
However if this is not possible at the moment and there is a way of overriding the value displayed in editor-title could you please advise.
Thanks in advance
I have a CustomProtocolHandler implementation, the full connector values including the web params are being displayed in the editor-title of the header-bar, I only need to display connector values and not the web params, but I need the web params to be passed with the URL.
Example of how I access the document:
Code: Select all
http://www.server.com/oxygen-webapp/app/oxygen.html?url=connector%3A%2FtestTarget-1-AUTHOR%26username%3Duser%26token%3DACCESS_TOKEN
The following is displayed in the editor-title
testTarget-1-AUTHOR&username=user&token=ACCESS_TOKEN
What I need to display is only the connector values:
testTarget-1-AUTHOR
Accessing with a decoded url as shown below doesn't display the web parameters but it doesn't also add them as part of the query, so I loose them completely.
Code: Select all
http://www.server.com/oxygen-webapp/app/oxygen.html?url=connector:/testTarget-1-AUTHOR&username=user&token=ACCESS_TOKEN
Ideally what I need is the connector values “testTarget-1-AUTHOR” to be part of the URL path and the web params “username=user&token=ACCESS_TOKEN” to be part of the query or any other property that allows me to access them in the CustomProtocolHandler implementation.
However if this is not possible at the moment and there is a way of overriding the value displayed in editor-title could you please advise.
Thanks in advance