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

📄 genericrequest.java

📁 GridSphere 门户 提供一个基于 portlet 的高级开放源代码门户。GridSphere 是在欧盟提供基金的 GridLab 项目下开发的
💻 JAVA
字号:
/* * @version: $Id: GenericRequest.java 4496 2006-02-08 20:27:04Z wehrens $ */package org.gridsphere.services.core.request.impl;import org.gridsphere.services.core.request.Request;import java.util.Date;import java.util.HashMap;import java.util.Map;public class GenericRequest implements Request {    private String oid = null;    private String userID = "";    private String label = "";    private Date lifetime = null;    private Map attributes = new HashMap();    public String getLabel() {        return label;    }    public void setLabel(String label) {        this.label = label;    }    public String getOid() {        return oid;    }    public void setOid(String oid) {        this.oid = oid;    }    public String getUserID() {        return userID;    }    public void setUserID(String userID) {        this.userID = userID;    }    public Date getLifetime() {        return lifetime;    }    public void setLifetime(Date lifetime) {        this.lifetime = lifetime;    }    public Map getAttributes() {        return attributes;    }    public void setAttributes(Map attributes) {        this.attributes = attributes;    }    /**     * Returns the value of the attribute with the given name,s     * or null if no attribute with the given name exists.     *     * @param name the attribute name     * @return the attribute value     */    public String getAttribute(String name) {        return (String)attributes.get(name);    }    /**     * Sets the value of the attribute with the given name,     *     * @param name  the attribute name     * @param value the attribute value     */    public void setAttribute(String name, String value) {        attributes.put(name, value);    }}

⌨️ 快捷键说明

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