简体   繁体   English

WebSphere Portal解码URL

[英]WebSphere Portal decode url

How I can decode WebSphere Portal url? 我如何解码WebSphere Portal url?

For example this url: /wps/portal/!ut/p/c5/dY7LdoIwAAW_hS9ICEnEZSBaKBSKkUfZcAKtKRYMKo-2X197XHtnObO4oAQ3TnJulRxbfZIdKEBJK2wn24ylATUpWUNfhLt9anHTJgg8g1J1ur6VOX_T31wzxRk_4NHZobEvzs5Vu6o3942nbJRTEpNl-UHmoK5JGlfvpOHThtV04ksmNlac5oHuz-HWb4QMcTQHr11SE3xZTUPdz9GvKwkTRfsydMdJHrQTd-vPizIMkP8_p5X7xDy8CiGMUQYhiohIYCos6Ft3Dx-MQRB5uv8Aw1cNj5gZfxocKIs!/dl3/d3/L2dJQSEvUUt3QS9ZQnZ3LzZfNDhRRlZBVUs2UEZMRDBJU1RDTEZIRTEwTDM!/ 比如这个网址:!!!/ WPS /门/ UT / P / C5 / dY7LdoIwAAW_hS9ICEnEZSBaKBSKkUfZcAKtKRYMKo-2X197XHtnObO4oAQ3TnJulRxbfZIdKEBJK2wn24ylATUpWUNfhLt9anHTJgg8g1J1ur6VOX_T31wzxRk_4NHZobEvzs5Vu6o3942nbJRTEpNl-UHmoK5JGlfvpOHThtV04ksmNlac5oHuz-HWb4QMcTQHr11SE3xZTUPdz9GvKwkTRfsydMdJHrQTd-vPizIMkP8_p5X7xDy8CiGMUQYhiohIYCos6Ft3Dx-MQRB5uv8Aw1cNj5gZfxocKIs / DL3 / D3 / L2dJQSEvUUt3QS9ZQnZ3LzZfNDhRRlZBVUs2UEZMRDBJU1RDTEZIRTEwTDM /

Is it possible? 可能吗?

Try the following: 请尝试以下方法:

/wps/poc?uri=state:URL&mode=download / WPS / POC URI =状态:URL和模式=下载

where URL is your original URL for example: 其中URL是您的原始网址,例如:

/wps/poc?uri=state:/wps/portal/!ut/p/c5/dY7LdoIwAAW_hS9ICEnEZSBaKBSKkUfZcAKtKRYMKo-2X197XHtnObO4oAQ3TnJulRxbfZIdKEBJK2wn24ylATUpWUNfhLt9anHTJgg8g1J1ur6VOX_T31wzxRk_4NHZobEvzs5Vu6o3942nbJRTEpNl-UHmoK5JGlfvpOHThtV04ksmNlac5oHuz-HWb4QMcTQHr11SE3xZTUPdz9GvKwkTRfsydMdJHrQTd-vPizIMkP8_p5X7xDy8CiGMUQYhiohIYCos6Ft3Dx-MQRB5uv8Aw1cNj5gZfxocKIs!/dl3/d3/L2dJQSEvUUt3QS9ZQnZ3LzZfNDhRRlZBVUs2UEZMRDBJU1RDTEZIRTEwTDM!/&mode=download

I do not have a running portal to check that but according to my notes it should work. 我没有运行的门户来检查,但根据我的说明,它应该工作。

Michal's answer is correct, calling the POC servlet that way will decode the state information in the URL and produce an XML representation. Michal的答案是正确的,调用POC servlet将解码URL中的状态信息并生成XML表示。

The format of this XML is not published, but is pretty easy to decipher, here's an example of how it can look: 这个XML的格式没有发布,但很容易破译,这里是一个如何看的例子:

<root session="1977644512">
  <state type="navigational">
    <portlet id="Z7_C2ORULUV0G8BD0IR4S6TP030G6">
      <window-state>minimized</window-state>
    </portlet>
    <selection selection-node="Z6_C2ORULUV00A520IBF1FAOO10G6">
      <mapping src="Z6_C2ORULUV0GP520IBIUSMBS0040" dst="Z6_C2ORULUV00A520IBF1FAOO10G6"/>
      <mapping src="Z6_000000000000000000000000A0" dst="Z6_C2ORULUV001S30IR8FCN1Q3001"/>
      <mapping src="Z6_C2ORULUV001S30IR8FCN1Q3001" dst="Z6_C2ORULUV0GP520IBIUSMBS0040"/>
    </selection>
    <expansions>
      <node id="Z6_C2ORULUV0GP520IBIUSMBS00O5"/>
      <node id="Z6_CGAH47L008LG50IAHUR9Q330A3"/>
      <node id="Z6_000000000000000000000000A0"/>
    </expansions>
    <theme-template>Home</theme-template>
    <portlet id="Z7_CGAH47L008LG50IAHUR9Q33803" portlet-type="legacy"/>
  </state>
  <target portlet-type="legacy" portlet-id="Z7_CGAH47L008LG50IAHUR9Q33803" id="LSzyY48160027">
    <target-type>action</target-type>
    <action-ref>sa.spf_ActionListener</action-ref>
  </target>
</root>

Inspecting the XML allows you to do qualified guesses as to what the different information actually means. 通过检查XML,您可以对不同信息的实际含义进行合格的猜测。 The <portlet> section(s) for example, clearly contains information about the window state and can probably also contain information about portlet mode. 例如, <portlet>部分显然包含有关窗口状态的信息,并且可能还包含有关portlet模式的信息。 The <selection> section contains the selection path that the user has traveled, and so on. <selection>部分包含用户已经行进的选择路径,依此类推。

Since I don't know what you are planning to use the decoded information for, I can't give you any specific guidelines, but consider the XML representation of the state information internal and do not base any application logic on it, since it can change at any point in time. 由于我不知道你打算使用解码后的信息,我不能给你任何具体的指导,但是考虑内部状态信息的XML表示并且不基于它的任何应用程序逻辑,因为它可以随时改变。

It can be useful to decode it for troubleshooting though, and to get a general insight in the URL handling of the Portal. 解码它以进行故障排除可能很有用,并且可以对Portal的URL处理有一个全面的了解。

这对我有用... http:server:port / context root / contenthandler?uri = state:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM