CustomProtocolHandler query string
Post here questions and problems related to oXygen frameworks/document types.
CustomProtocolHandler query string
Hi,
I have a customprotocolHandler implementation in which I need to read a number of values from the URL (web parameters).
Example;
- From
- I need to capture user, accessType and token
It looks like URLStreamHandler does not contain that information. Could you advice please?
Thanks
I have a customprotocolHandler implementation in which I need to read a number of values from the URL (web parameters).
Example;
- From
Code: Select all
http://server/oxygen-webapp/app/oxygen.html?url=connector:/test-200&author=user&accessType=AUTHOR&token=token
It looks like URLStreamHandler does not contain that information. Could you advice please?
Thanks
-
- Posts: 494
- Joined: Thu Sep 04, 2014 4:22 pm
Re: CustomProtocolHandler query string
Post by cristi_talau »
Hello,
Web Author usually passes the query string to the URLStreamHandler.
One possible cause for the problem you experience is that the "url" parameter value is not properly encoded. The URL should look like:
Please let me know if you are still not able to retrieve the query params.
Best,
Cristian
Web Author usually passes the query string to the URLStreamHandler.
One possible cause for the problem you experience is that the "url" parameter value is not properly encoded. The URL should look like:
Code: Select all
http://server/oxygen-webapp/app/oxygen.html?url=connector%3A%2Ftest-200%26author%3Duser%26accessType%3DAUTHOR%26token%3Dtoken
Best,
Cristian
Re: CustomProtocolHandler query string
After the connector values escaping a question mark rather than an andpercent did it for me, i.e. the URL will look like
Code: Select all
http://server/oxygen-webapp/app/oxygen.html?url=connector%3A%2Ftest-200%3Fauthor%3Duser%26accessType%3DAUTHOR%26token%3Dtoken
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service