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

📄 part.java

📁 该HttpProxy用于从Applet或Swing界面中访问Ejb和服务端的JavaBean。
💻 JAVA
字号:
// Copyright (C) 1999-2001 by Jason Hunter <jhunter_AT_acm_DOT_org>.
// All rights reserved.  Use of this class is limited.
// Please see the LICENSE for more information.

package com.nari.pmos.arch.multipart;

/**
 * A <code>Part</code> is an abstract upload part which represents an
 * <code>INPUT</code> form element in a <code>multipart/form-data</code>
 * form submission.
 * 
 * @see FilePart
 * @see ParamPart
 * 
 * @author Geoff Soutter
 * @version 1.0, 2000/10/27, initial revision
 */
public abstract class Part {
	private String name;

	/**
	 * Constructs an upload part with the given name.
	 */
	Part(String name) {
		this.name = name;
	}

	/**
	 * Returns the name of the form element that this Part corresponds to.
	 * 
	 * @return the name of the form element that this Part corresponds to.
	 */
	public String getName() {
		return name;
	}

	/**
	 * Returns true if this Part is a FilePart.
	 * 
	 * @return true if this is a FilePart.
	 */
	public boolean isFile() {
		return false;
	}

	/**
	 * Returns true if this Part is a ParamPart.
	 * 
	 * @return true if this is a ParamPart.
	 */
	public boolean isParam() {
		return false;
	}
}

⌨️ 快捷键说明

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