⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dataholder.java

📁 java开源的企业总线.xmlBlaster
💻 JAVA
字号:
package org.xmlBlaster.authentication.plugins;import org.xmlBlaster.util.MsgUnit;import org.xmlBlaster.util.def.MethodName;/** * Container to transport information to the isAuthorized() method. * @author xmlblast@marcelruff.info */public class DataHolder {   private final MethodName action;   private final MsgUnit msgUnit;   /**    * @param action May not be null    * @param msgUnit May not be null    */   public DataHolder(MethodName action, MsgUnit msgUnit) {      super();      if (action == null) throw new IllegalArgumentException("Creating DataHolder expects none null action");      if (msgUnit == null) throw new IllegalArgumentException("Creating DataHolder expects none null msgUnit");      this.action = action;      this.msgUnit = msgUnit;   }   /**    * @return Returns the action, never null    */   public MethodName getAction() {      return this.action;   }   /**    * @return Returns the msgUnit, is never null    */   public MsgUnit getMsgUnit() {      return this.msgUnit;   }   /**    * The key oid    * @return Never null, but can be empty    */   public String getKeyOid() {      return this.msgUnit.getKeyOid() == null ? "" : this.msgUnit.getKeyOid();   }   /**    * The key url notation like "exact:hello", "xpath://key", "domain:sport"    * @return Never null, but can be empty    */   public String getKeyUrl() {      return this.msgUnit.getKeyData() == null ? "" : this.msgUnit.getKeyData().getUrl();   }   public String toString() {      return this.action + " " + this.msgUnit.getKeyOid();   }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -