📄 customintervaltype.java
字号:
/************************************************************************* * * * EJBCA: The OpenSource Certificate Authority * * * * This software is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public * * License as published by the Free Software Foundation; either * * version 2.1 of the License, or any later version. * * * * See terms of license at gnu.org. * * * *************************************************************************/package org.ejbca.ui.web.admin.services.servicetypes;import java.io.ByteArrayInputStream;import java.io.ByteArrayOutputStream;import java.io.IOException;import java.util.ArrayList;import java.util.Properties;/** * Class used to populate the fields in the custominterval.jsp subview page. * * @author Philip Vendil 2006 sep 30 * * @version $Id: CustomIntervalType.java,v 1.3 2006/10/26 11:02:17 herrvendil Exp $ */public class CustomIntervalType extends IntervalType { public static final String NAME = "CUSTOMINTERVAL"; public CustomIntervalType() { super("custominterval.jsp", NAME, true); } private String classPath; private String propertyText; /** * @return the propertyText */ public String getPropertyText() { return propertyText; } /** * @param propertyText the propertyText to set */ public void setPropertyText(String propertyText) { this.propertyText = propertyText; } /** * @param classPath the classPath to set */ public void setClassPath(String classPath) { this.classPath = classPath; } public String getClassPath() { return classPath; } public Properties getProperties(ArrayList errorMessages) throws IOException{ Properties retval = new Properties(); retval.load(new ByteArrayInputStream(getPropertyText().getBytes())); return retval; } public void setProperties(Properties properties) throws IOException{ ByteArrayOutputStream baos = new ByteArrayOutputStream(); properties.store(baos, null); setPropertyText(new String(baos.toByteArray())); } public boolean isCustom() { return true; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -