diff options
author | Endi S. Dewata <edewata@redhat.com> | 2013-10-07 11:48:54 -0400 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2013-10-25 17:17:39 -0400 |
commit | 2119f1b218e9d68b13496e7042785d9c68753966 (patch) | |
tree | b8c7cf5692723340d8d56e5d8c401acdee059ca5 /base/common/src/com/netscape/cms/servlet/profile/ProfileInputFactory.java | |
parent | 7ca5adf1bd5bc4f9a7c5f2035426b9158007bb28 (diff) | |
download | pki-2119f1b218e9d68b13496e7042785d9c68753966.tar.gz pki-2119f1b218e9d68b13496e7042785d9c68753966.tar.xz pki-2119f1b218e9d68b13496e7042785d9c68753966.zip |
Reorganized server packages.
The tomcat, cms, and cmscore packages have been moved from base/common
into separate folders in base/server so that they can be built separately.
Diffstat (limited to 'base/common/src/com/netscape/cms/servlet/profile/ProfileInputFactory.java')
-rw-r--r-- | base/common/src/com/netscape/cms/servlet/profile/ProfileInputFactory.java | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/base/common/src/com/netscape/cms/servlet/profile/ProfileInputFactory.java b/base/common/src/com/netscape/cms/servlet/profile/ProfileInputFactory.java deleted file mode 100644 index f89d8224e..000000000 --- a/base/common/src/com/netscape/cms/servlet/profile/ProfileInputFactory.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.netscape.cms.servlet.profile; - -import java.util.Enumeration; -import java.util.Locale; - -import com.netscape.certsrv.base.IArgBlock; -import com.netscape.certsrv.profile.EProfileException; -import com.netscape.certsrv.profile.IProfileInput; -import com.netscape.certsrv.profile.ProfileAttribute; -import com.netscape.certsrv.profile.ProfileInput; -import com.netscape.certsrv.request.IRequest; - -public class ProfileInputFactory { - - public static ProfileInput create(IProfileInput input, IRequest request, Locale locale) throws EProfileException { - ProfileInput ret = new ProfileInput(); - ret.setName(input.getName(locale)); - ret.setClassId(input.getClass().getSimpleName()); - Enumeration<String> names = input.getValueNames(); - while (names.hasMoreElements()) { - String name = names.nextElement(); - String value = input.getValue(name, locale, request); - if (value != null) { - ret.addAttribute(new ProfileAttribute(name, value, null)); - } - } - return ret; - } - - public static ProfileInput create(IProfileInput input, IArgBlock params, Locale locale) throws EProfileException { - ProfileInput ret = new ProfileInput(); - ret.setName(input.getName(locale)); - ret.setClassId(input.getClass().getSimpleName()); - Enumeration<String> names = input.getValueNames(); - while (names.hasMoreElements()) { - String name = names.nextElement(); - String value = params.getValueAsString(name, null); - if (value != null) { - ret.addAttribute(new ProfileAttribute(name, value, null)); - } - } - return ret; - } -} |