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

📄 portletfilteradapter.html

📁 门户开发
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called by the portlet container (via the <code>doFilter</code> method) to  allow a portlet filter to handle a MESSAGEVENT method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../../com/ibm/wps/pe/pc/legacy/cmpf/PortletFilterAdapter.html#doService(org.apache.jetspeed.portlet.PortletRequest, org.apache.jetspeed.portlet.PortletResponse, com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterChain)">doService</A></B>(<A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletRequest.html" title="interface in org.apache.jetspeed.portlet">PortletRequest</A>&nbsp;request,          <A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletResponse.html" title="interface in org.apache.jetspeed.portlet">PortletResponse</A>&nbsp;response,          com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterChain&nbsp;chain)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called by the portlet container (via the <code>doFilter</code> method) to  allow a portlet filter to handle a SERVICE method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../../com/ibm/wps/pe/pc/legacy/cmpf/PortletFilterAdapter.html#doTitle(org.apache.jetspeed.portlet.PortletRequest, org.apache.jetspeed.portlet.PortletResponse, com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterChain)">doTitle</A></B>(<A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletRequest.html" title="interface in org.apache.jetspeed.portlet">PortletRequest</A>&nbsp;request,        <A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletResponse.html" title="interface in org.apache.jetspeed.portlet">PortletResponse</A>&nbsp;response,        com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterChain&nbsp;chain)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called by the portlet container (via the <code>doFilter</code> method) to  allow a portlet filter to handle a DOTITLE method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../../com/ibm/wps/pe/pc/legacy/cmpf/PortletFilterAdapter.html#doWindowEvent(org.apache.jetspeed.portlet.PortletRequest, org.apache.jetspeed.portlet.PortletResponse, com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterChain)">doWindowEvent</A></B>(<A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletRequest.html" title="interface in org.apache.jetspeed.portlet">PortletRequest</A>&nbsp;request,              <A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletResponse.html" title="interface in org.apache.jetspeed.portlet">PortletResponse</A>&nbsp;response,              com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterChain&nbsp;chain)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called by the portlet container (via the <code>doFilter</code> method) to allow a portlet filter to handle a WINDOWEVENT method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterConfig</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../../com/ibm/wps/pe/pc/legacy/cmpf/PortletFilterAdapter.html#getFilterConfig()">getFilterConfig</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the FilterConfig for this Filter.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../../com/ibm/wps/pe/pc/legacy/cmpf/PortletFilterAdapter.html#init(com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterConfig)">init</A></B>(com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterConfig&nbsp;filterConfig)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called by the portlet container to indicate to a filter that it is being placed into service.</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.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="PortletFilterAdapter()"><!-- --></A><H3>PortletFilterAdapter</H3><PRE>public <B>PortletFilterAdapter</B>()</PRE><DL><DD>Creates a new PortletFilterAdapter.<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="init(com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterConfig)"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>(com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterConfig&nbsp;filterConfig)          throws <A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletException.html" title="class in org.apache.jetspeed.portlet">PortletException</A></PRE><DL><DD>Called by the portlet container to indicate to a filter that it is being placed into service. The portlet container calls the init method exactly once after instantiating the filter.<BR> The init method must complete successfully before the filter is asked to do any filtering work. <P> The portlet container cannot place the filter into service if the init method either<BR> <OL> <LI>Throws a PortletException</LI> <LI>Does not return within a time period defined by the portlet container</LI> </OL><P><DD><DL><DT><B>Specified by:</B><DD><CODE>init</CODE> in interface <CODE>com.ibm.wps.pe.pc.legacy.cmpf.PortletFilter</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>filterConfig</CODE> - the portlet filter config<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletException.html" title="class in org.apache.jetspeed.portlet">PortletException</A></CODE> - if an exception has occurrred that interferes                   with the portlet filter's normal initialization</DL></DD></DL><HR><A NAME="doFilter(com.ibm.wps.pe.pc.legacy.cmpf.PortletFilter.Method, org.apache.jetspeed.portlet.PortletRequest, org.apache.jetspeed.portlet.PortletResponse, com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterChain)"><!-- --></A><H3>doFilter</H3><PRE>public void <B>doFilter</B>(com.ibm.wps.pe.pc.legacy.cmpf.PortletFilter.Method&nbsp;method,                     <A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletRequest.html" title="interface in org.apache.jetspeed.portlet">PortletRequest</A>&nbsp;request,                     <A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletResponse.html" title="interface in org.apache.jetspeed.portlet">PortletResponse</A>&nbsp;response,                     com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterChain&nbsp;chain)              throws <A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletException.html" title="class in org.apache.jetspeed.portlet">PortletException</A>,                     java.io.IOException</PRE><DL><DD>The doFilter method of the Filter is called by the container each time a request/response pair is passed through the chain due to a client request for a resource at the end of the chain. <P> <I>Please note that the response may be null for an event-based method, e.g., ActionEvent.</I> <P> The FilterChain passed in to this method allows the Filter to pass on the request and response to the next entity in the chain. <P> A typical implementation of this method would follow the following pattern:<BR> <OL> <LI>Examine the request</LI> <LI>Optionally wrap the request object with a custom implementation to filter content or headers for input filtering</LI> <LI>Optionally wrap the response object with a custom implementation to filter content or headers for output filtering</LI> <LI>a) Either invoke the next entity in the chain using the FilterChain object (chain.doFilter()),</LI> <LI>b) or not pass on the request/response pair to the next entity in the filter chain to block the request processing</LI> </OL><P><DD><DL><DT><B>Specified by:</B><DD><CODE>doFilter</CODE> in interface <CODE>com.ibm.wps.pe.pc.legacy.cmpf.PortletFilter</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>method</CODE> - the type of requested method<DD><CODE>request</CODE> - the request to pass along the chain.<DD><CODE>response</CODE> - the response to pass along the chain.<DD><CODE>chain</CODE> - the portlet filter chain<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletException.html" title="class in org.apache.jetspeed.portlet">PortletException</A></CODE> - if the filter has trouble fulfilling the request<DD><CODE>java.io.IOException</CODE> - if the streaming causes an I/O problem<DT><B>See Also:</B><DD><CODE>PortletFilterChain</CODE></DL></DD></DL><HR><A NAME="doLogin(org.apache.jetspeed.portlet.PortletRequest, org.apache.jetspeed.portlet.PortletResponse, com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterChain)"><!-- --></A><H3>doLogin</H3><PRE>public void <B>doLogin</B>(<A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletRequest.html" title="interface in org.apache.jetspeed.portlet">PortletRequest</A>&nbsp;request,                    <A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletResponse.html" title="interface in org.apache.jetspeed.portlet">PortletResponse</A>&nbsp;response,                    com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterChain&nbsp;chain)             throws <A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletException.html" title="class in org.apache.jetspeed.portlet">PortletException</A>,                    java.io.IOException</PRE><DL><DD>Called by the portlet container (via the <code>doFilter</code> method) to  allow a portlet filter to handle a LOGIN method.  For this method the response is always NULL.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - the request to pass along the chain.<DD><CODE>response</CODE> - the response to pass along the chain.<DD><CODE>chain</CODE> - the portlet filter chain<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletException.html" title="class in org.apache.jetspeed.portlet">PortletException</A></CODE> - if the filter has trouble fulfilling the request<DD><CODE>java.io.IOException</CODE> - if the streaming causes an I/O problem<DT><B>See Also:</B><DD><CODE>PortletFilterChain</CODE></DL></DD></DL><HR><A NAME="doBeginPage(org.apache.jetspeed.portlet.PortletRequest, org.apache.jetspeed.portlet.PortletResponse, com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterChain)"><!-- --></A><H3>doBeginPage</H3><PRE>public void <B>doBeginPage</B>(<A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletRequest.html" title="interface in org.apache.jetspeed.portlet">PortletRequest</A>&nbsp;request,                        <A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletResponse.html" title="interface in org.apache.jetspeed.portlet">PortletResponse</A>&nbsp;response,                        com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterChain&nbsp;chain)                 throws <A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletException.html" title="class in org.apache.jetspeed.portlet">PortletException</A>,                        java.io.IOException</PRE><DL><DD>Called by the portlet container (via the <code>doFilter</code> method) to  allow a portlet filter to handle a BEGINPAGE method.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - the request to pass along the chain.<DD><CODE>response</CODE> - the response to pass along the chain.<DD><CODE>chain</CODE> - the portlet filter chain<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletException.html" title="class in org.apache.jetspeed.portlet">PortletException</A></CODE> - if the filter has trouble fulfilling the request<DD><CODE>java.io.IOException</CODE> - if the streaming causes an I/O problem<DT><B>See Also:</B><DD><CODE>PortletFilterChain</CODE></DL></DD></DL><HR><A NAME="doService(org.apache.jetspeed.portlet.PortletRequest, org.apache.jetspeed.portlet.PortletResponse, com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterChain)"><!-- --></A><H3>doService</H3><PRE>public void <B>doService</B>(<A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletRequest.html" title="interface in org.apache.jetspeed.portlet">PortletRequest</A>&nbsp;request,                      <A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletResponse.html" title="interface in org.apache.jetspeed.portlet">PortletResponse</A>&nbsp;response,                      com.ibm.wps.pe.pc.legacy.cmpf.PortletFilterChain&nbsp;chain)               throws <A HREF="../../../../../../../org/apache/jetspeed/portlet/PortletException.html" title="class in org.apache.jetspeed.portlet">PortletException</A>,                      java.io.IOException</PRE><DL>

⌨️ 快捷键说明

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