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

📄 soapfactory.html

📁 j2ee帮助文档软件设计/软件工程 文件格式
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPFactory.html#createName(java.lang.String)">createName</A></B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;localName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <code>Name</code> object initialized with the given local name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;<A HREF="../../../javax/xml/soap/Name.html" title="interface in javax.xml.soap">Name</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPFactory.html#createName(java.lang.String, java.lang.String, java.lang.String)">createName</A></B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;localName,           <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;prefix,           <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;uri)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <code>Name</code> object initialized with the given local name, namespace prefix, and namespace URI.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../javax/xml/soap/SOAPFactory.html" title="class in javax.xml.soap">SOAPFactory</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPFactory.html#newInstance()">newInstance</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <code>SOAPFactory</code> object that is an instance of the default implementation (SOAP 1.1), This method uses the following ordered lookup procedure to determine the SOAPFactory implementation class to load:    Use the javax.xml.soap.SOAPFactory system property.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../javax/xml/soap/SOAPFactory.html" title="class in javax.xml.soap">SOAPFactory</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPFactory.html#newInstance(java.lang.String)">newInstance</A></B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;protocol)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <code>SOAPFactory</code> object that is an instance of the specified implementation, this method uses the SAAJMetaFactory to  locate the implementation class and create the SOAPFactory instance.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="SOAPFactory()"><!-- --></A><H3>SOAPFactory</H3><PRE>public <B>SOAPFactory</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="createElement(org.w3c.dom.Element)"><!-- --></A><H3>createElement</H3><PRE>public <A HREF="../../../javax/xml/soap/SOAPElement.html" title="interface in javax.xml.soap">SOAPElement</A> <B>createElement</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A>&nbsp;domElement)                          throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE><DL><DD>Creates a <code>SOAPElement</code> object from an existing DOM  <code>Element</code>. If the DOM <code>Element</code> that is passed in as an argument is already a <code>SOAPElement</code> then this method  must return it unmodified without any further work. Otherwise, a new <code>SOAPElement</code> is created and a deep copy is made of the  <code>domElement</code> argument. The concrete type of the return value will depend on the name of the <code>domElement</code> argument. If any part of the tree rooted in <code>domElement</code> violates SOAP rules, a  <code>SOAPException</code> will be thrown.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>domElement</CODE> - - the <code>Element</code> to be copied.<DT><B>Returns:</B><DD>a new <code>SOAPElement</code> that is a copy of <code>domElement</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if there is an error in creating the            <code>SOAPElement</code> object<DT><B>Since:</B></DT>  <DD>SAAJ 1.3</DD></DL></DD></DL><HR><A NAME="createElement(javax.xml.soap.Name)"><!-- --></A><H3>createElement</H3><PRE>public abstract <A HREF="../../../javax/xml/soap/SOAPElement.html" title="interface in javax.xml.soap">SOAPElement</A> <B>createElement</B>(<A HREF="../../../javax/xml/soap/Name.html" title="interface in javax.xml.soap">Name</A>&nbsp;name)                                   throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE><DL><DD>Creates a <code>SOAPElement</code> object initialized with the given <code>Name</code> object. The concrete type of the return value will depend on the name given to the new <code>SOAPElement</code>. For  instance, a new <code>SOAPElement</code> with the name  "{http://www.w3.org/2003/05/soap-envelope}Envelope" would cause a  <code>SOAPEnvelope</code> that supports SOAP 1.2 behavior to be created.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - a <code>Name</code> object with the XML name for             the new element<DT><B>Returns:</B><DD>the new <code>SOAPElement</code> object that was         created<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if there is an error in creating the            <code>SOAPElement</code> object<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/SOAPFactory.html#createElement(javax.xml.namespace.QName)"><CODE>createElement(javax.xml.namespace.QName)</CODE></A></DL></DD></DL><HR><A NAME="createElement(javax.xml.namespace.QName)"><!-- --></A><H3>createElement</H3><PRE>public <A HREF="../../../javax/xml/soap/SOAPElement.html" title="interface in javax.xml.soap">SOAPElement</A> <B>createElement</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/javax/xml/namespace/QName.html" title="class or interface in javax.xml.namespace">QName</A>&nbsp;qname)                          throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE><DL><DD>Creates a <code>SOAPElement</code> object initialized with the given <code>QName</code> object. The concrete type of the return value will depend on the name given to the new <code>SOAPElement</code>. For  instance, a new <code>SOAPElement</code> with the name  "{http://www.w3.org/2003/05/soap-envelope}Envelope" would cause a  <code>SOAPEnvelope</code> that supports SOAP 1.2 behavior to be created.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>qname</CODE> - a <code>QName</code> object with the XML name for             the new element<DT><B>Returns:</B><DD>the new <code>SOAPElement</code> object that was         created<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if there is an error in creating the            <code>SOAPElement</code> object<DT><B>Since:</B></DT>  <DD>SAAJ 1.3</DD><DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/SOAPFactory.html#createElement(javax.xml.soap.Name)"><CODE>createElement(Name)</CODE></A></DL></DD></DL><HR><A NAME="createElement(java.lang.String)"><!-- --></A><H3>createElement</H3><PRE>public abstract <A HREF="../../../javax/xml/soap/SOAPElement.html" title="interface in javax.xml.soap">SOAPElement</A> <B>createElement</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;localName)                                   throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE><DL><DD>Creates a <code>SOAPElement</code> object initialized with the given local name.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>localName</CODE> - a <code>String</code> giving the local name for             the new element<DT><B>Returns:</B><DD>the new <code>SOAPElement</code> object that was         created<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if there is an error in creating the            <code>SOAPElement</code> object</DL></DD></DL><HR><A NAME="createElement(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>createElement</H3><PRE>public abstract <A HREF="../../../javax/xml/soap/SOAPElement.html" title="interface in javax.xml.soap">SOAPElement</A> <B>createElement</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;localName,                                          <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;prefix,                                          <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;uri)                                   throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE><DL><DD>Creates a new <code>SOAPElement</code> object with the given local name, prefix and uri. The concrete type of the return value will depend on the name given to the new <code>SOAPElement</code>. For  instance, a new <code>SOAPElement</code> with the name  "{http://www.w3.org/2003/05/soap-envelope}Envelope" would cause a  <code>SOAPEnvelope</code> that supports SOAP 1.2 behavior to be created.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>localName</CODE> - a <code>String</code> giving the local name                  for the new element<DD><CODE>prefix</CODE> - the prefix for this <code>SOAPElement</code><DD><CODE>uri</CODE> - a <code>String</code> giving the URI of the            namespace to which the new element belongs<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if there is an error in creating the            <code>SOAPElement</code> object</DL></DD></DL><HR><A NAME="createDetail()"><!-- --></A><H3>createDetail</H3><PRE>public abstract <A HREF="../../../javax/xml/soap/Detail.html" title="interface in javax.xml.soap">Detail</A> <B>createDetail</B>()                             throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE><DL><DD>Creates a new <code>Detail</code> object which serves as a container for <code>DetailEntry</code> objects. <P> This factory method creates <code>Detail</code> objects for use in situations where it is not practical to use the <code>SOAPFault</code> abstraction.

⌨️ 快捷键说明

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