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

📄 jco.server.html

📁 SAP ERP的二次开发
💻 HTML
📖 第 1 页 / 共 4 页
字号:
public <B>JCO.Server</B>(java.util.Properties&nbsp;properties,                  <A HREF="../../../../com/sap/mw/jco/IServerThread.html">IServerThread</A>&nbsp;thread,                  <A HREF="../../../../com/sap/mw/jco/IRepository.html">IRepository</A>&nbsp;repository)</PRE>
<DL>
<DD>Creates an instance of a server connection<DD><DL>
<DT><B>Parameters:</B><DD><CODE>properties</CODE> - the connection parameters passed as a properties object<DD><CODE>thread</CODE> - the thread this server is running in<DD><CODE>repository</CODE> - the repository used by the server to lookup the definitions of an incoming function call<DT><B>Since: </B><DD>JCo 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="JCO.Server(java.lang.String[][], com.sap.mw.jco.IRepository)"><!-- --></A><H3>
JCO.Server</H3>
<PRE>
public <B>JCO.Server</B>(java.lang.String[][]&nbsp;params,                  <A HREF="../../../../com/sap/mw/jco/IRepository.html">IRepository</A>&nbsp;repository)</PRE>
<DL>
<DD>Creates an instance of a server using an array to specify the connection parameters. Each item in the array is a name/value pair where the first element is the name and the second is the value associated with the name, e.g. <pre>     static String[][] login_params  = {        { "gwhost" ,   "bin20"     },        { "gwserv"   , "gwbin20"   },        { "progid" ,   "PROGRAM01" },     }; </pre><DD><DL>
<DT><B>Parameters:</B><DD><CODE>params</CODE> - the connection parameters as an two-dimemsional array<DD><CODE>repository</CODE> - the repository used by the server to lookup the definitions of an incoming function call</DL>
</DD>
</DL>
<HR>

<A NAME="JCO.Server(java.lang.String[], com.sap.mw.jco.IRepository)"><!-- --></A><H3>
JCO.Server</H3>
<PRE>
public <B>JCO.Server</B>(java.lang.String[]&nbsp;argv,                  <A HREF="../../../../com/sap/mw/jco/IRepository.html">IRepository</A>&nbsp;repository)</PRE>
<DL>
<DD>Creates an instance of a server using an arv array as passed by <tt>void main(String[] argv)</tt><DD><DL>
<DT><B>Parameters:</B><DD><CODE>argv</CODE> - the array of arguments as passed by <tt>void main(String[] argv)</tt><DD><CODE>repository</CODE> - the repository used by the server to lookup the definitions of an incoming function call<DT><B>Since: </B><DD>1.1.03</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="JCO.Server(java.lang.String, java.lang.String, java.lang.String, com.sap.mw.jco.IRepository)"><!-- --></A><H3>
JCO.Server</H3>
<PRE>
public <B>JCO.Server</B>(java.lang.String&nbsp;gwhost,                  java.lang.String&nbsp;gwserv,                  java.lang.String&nbsp;progid,                  <A HREF="../../../../com/sap/mw/jco/IRepository.html">IRepository</A>&nbsp;repository)</PRE>
<DL>
<DD>Creates an instance of a server connection<DD><DL>
<DT><B>Parameters:</B><DD><CODE>gwhost</CODE> - the gateway host<DD><CODE>gwserv</CODE> - the gateway service number (usually sapgwNN)<DD><CODE>progid</CODE> - the program id<DD><CODE>repository</CODE> - the repository used by the server to lookup the definitions of an incoming function call</DL>
</DD>
</DL>
<HR>

<A NAME="JCO.Server(java.lang.String, java.lang.String, java.lang.String, com.sap.mw.jco.IServerThread, com.sap.mw.jco.IRepository)"><!-- --></A><H3>
JCO.Server</H3>
<PRE>
public <B>JCO.Server</B>(java.lang.String&nbsp;gwhost,                  java.lang.String&nbsp;gwserv,                  java.lang.String&nbsp;progid,                  <A HREF="../../../../com/sap/mw/jco/IServerThread.html">IServerThread</A>&nbsp;thread,                  <A HREF="../../../../com/sap/mw/jco/IRepository.html">IRepository</A>&nbsp;repository)</PRE>
<DL>
<DD>Creates an instance of a server connection<DD><DL>
<DT><B>Parameters:</B><DD><CODE>gwhost</CODE> - the gateway host<DD><CODE>gwserv</CODE> - the gateway service number<DD><CODE>progid</CODE> - the program id<DD><CODE>thread</CODE> - the thread this server is running in<DD><CODE>repository</CODE> - the repository used by the server to lookup the definitions of an incoming function call</DL>
</DD>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="getPropertyInfo()"><!-- --></A><H3>
getPropertyInfo</H3>
<PRE>
public final java.lang.String[][] <B>getPropertyInfo</B>()</PRE>
<DL>
<DD>Returns the property info for the server<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/sap/mw/jco/JCO.Connection.html#getPropertyInfo()">getPropertyInfo</A></CODE> in class <CODE><A HREF="../../../../com/sap/mw/jco/JCO.Connection.html">JCO.Connection</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the property info</DL>
</DD>
</DL>
<HR>

<A NAME="setCallModel(int)"><!-- --></A><H3>
setCallModel</H3>
<PRE>
public void <B>setCallModel</B>(int&nbsp;call_model)</PRE>
<DL>
<DD>Sets the call model which can be either <tt>JCO.Server.FUNCTION_MODEL</tt>  or <tt>JCO.Server.REQUEST_RESPONSE_MODEL</tt>. Depending on  the call model either the <tt>void handleRequest(JCO.Function function)</tt>  or tje method <tt>void handleRequest(JCO.Request, JCO.Response)</tt> will  be called on incoming requests. The default is calling <tt>void handleRequest(Function function)</tt><DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>call_model</CODE> - the call model which this server uses<DT><B>See Also: </B><DD><A HREF="../../../../com/sap/mw/jco/JCO.Server.html#getCallModel()"><CODE>getCallModel()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getCallModel()"><!-- --></A><H3>
getCallModel</H3>
<PRE>
public int <B>getCallModel</B>()</PRE>
<DL>
<DD>Returns the call model which can be either <tt>JCO.Server.FUNCTION_MODEL</tt>  or <tt>JCO.Server.REQUEST_RESPONSE_MODEL</tt>.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Since: </B><DD>JCo 2.0</DD>
<DT><B>See Also: </B><DD><A HREF="../../../../com/sap/mw/jco/JCO.Server.html#setCallModel(int)"><CODE>setCallModel(int)</CODE></A>, 
<A HREF="../../../../com/sap/mw/jco/JCO.Server.html#handleRequest(com.sap.mw.jco.JCO.Function)"><CODE>handleRequest(JCO.Function)</CODE></A>, 
<A HREF="../../../../com/sap/mw/jco/JCO.Server.html#handleRequest(com.sap.mw.jco.JCO.Request, com.sap.mw.jco.JCO.Response)"><CODE>handleRequest(JCO.Request, JCO.Response)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getState()"><!-- --></A><H3>
getState</H3>
<PRE>
public byte <B>getState</B>()</PRE>
<DL>
<DD>Returns the server's state as a bit vector<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the state of the server as a bit vector <table border=1> <tr><th>Flag                 </th><th>Description                                           </th></tr> <tr><td>JCO.STATE_STOPPED    </td><td>The server has been stopped                           </td></tr> <tr><td>JCO.STATE_STARTED    </td><td>The server has been started                           </td></tr> <tr><td>JCO.STATE_LISTENING  </td><td>The server is listening for incoming requests         </td></tr> <tr><td>JCO.STATE_BUSY       </td><td>The server is currently processing an incoming request</td></tr> <tr><td>JCO.STATE_TRANSACTION</td><td>The server incoming request is a transaction          </td></tr> </table></DL>
</DD>
</DL>
<HR>

<A NAME="getThread()"><!-- --></A><H3>
getThread</H3>
<PRE>
public java.lang.Thread <B>getThread</B>()</PRE>
<DL>
<DD>Returns the thread this server is running in<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the thread this server is running in</DL>
</DD>
</DL>
<HR>

<A NAME="getAttributes()"><!-- --></A><H3>
getAttributes</H3>
<PRE>
public final <A HREF="../../../../com/sap/mw/jco/JCO.Attributes.html">JCO.Attributes</A> <B>getAttributes</B>()</PRE>
<DL>
<DD>Returns the attributes object for this server.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/sap/mw/jco/JCO.Connection.html#getAttributes()">getAttributes</A></CODE> in class <CODE><A HREF="../../../../com/sap/mw/jco/JCO.Connection.html">JCO.Connection</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the attributes object for this server.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../com/sap/mw/jco/JCO.Exception.html">JCO.Exception</A></CODE> - thrown if the attributes could not be retrieved.<DT><B>See Also: </B><DD><A HREF="../../../../com/sap/mw/jco/JCO.Attributes.html"><CODE>JCO.Attributes</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getGWHost()"><!-- --></A><H3>
getGWHost</H3>
<PRE>
public final java.lang.String <B>getGWHost</B>()</PRE>
<DL>
<DD>Returns the gateway server<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the gateway server</DL>
</DD>
</DL>
<HR>

<A NAME="getGWServ()"><!-- --></A><H3>
getGWServ</H3>
<PRE>
public final java.lang.String <B>getGWServ</B>()</PRE>
<DL>
<DD>Returns the gateway service<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the gateway service</DL>
</DD>
</DL>
<HR>

<A NAME="getProgID()"><!-- --></A><H3>
getProgID</H3>
<PRE>
public final java.lang.String <B>getProgID</B>()</PRE>
<DL>
<DD>Returns the program id<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the program id</DL>
</DD>
</DL>
<HR>

<A NAME="getTrace()"><!-- --></A><H3>
getTrace</H3>
<PRE>
public final boolean <B>getTrace</B>()</PRE>
<DL>
<DD>Returns whether trace is enabled or not.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/sap/mw/jco/JCO.Connection.html#getTrace()">getTrace</A></CODE> in class <CODE><A HREF="../../../../com/sap/mw/jco/JCO.Connection.html">JCO.Connection</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><tt>true</tt> if trace is enabled, <tt>false</tt> otherwise</DL>
</DD>
</DL>
<HR>

<A NAME="setTrace(boolean)"><!-- --></A><H3>
setTrace</H3>
<PRE>
public final void <B>setTrace</B>(boolean&nbsp;trace)</PRE>
<DL>
<DD>Enables/disables trace<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/sap/mw/jco/JCO.Connection.html#setTrace(boolean)">setTrace</A></CODE> in class <CODE><A HREF="../../../../com/sap/mw/jco/JCO.Connection.html">JCO.Connection</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>trace</CODE> - if <tt>true</tt> enables the trace and disables it otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="getDsrPassport()"><!-- --></A><H3>
getDsrPassport</H3>
<PRE>
public com.sap.jdsr.writer.DsrIPassport <B>getDsrPassport</B>()</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>only for internal use</I>
<P>
<DD>get dsr passport for last server request<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>dsr passport<DT><B>Throws:</B><DD><CODE><A HREF="../../../../com/sap/mw/jco/JCO.Exception.html">JCO.Exception</A></CODE> - if DSR library wasn't found in classpath or          dsp passport wasn't send by partner side</DL>
</DD>
</DL>
<HR>

<A NAME="disconnect()"><!-- --></A><H3>
disconnect</H3>
<PRE>
public void <B>disconnect</B>()</PRE>
<DL>
<DD>Closes the connection to the remote system hardly and cleans up  the connection context.<br>  <em>Note:</em> This function is for internal use only. Do not use in  application programs. For a safe server shutdown please use  <code>stop</code>-method instead. Calling this method on a running  server can cause RFC errors and/or memory access violations.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/sap/mw/jco/JCO.Connection.html#disconnect()">disconnect</A></CODE> in class <CODE><A HREF="../../../../com/sap/mw/jco/JCO.Connection.html">JCO.Connection</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also: </B><DD><A HREF="../../../../com/sap/mw/jco/JCO.Server.html#stop()"><CODE>stop()</CODE></A></DL>
</DD>
</DL>
<HR>

⌨️ 快捷键说明

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