📄 contentaccessservice.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2) on Wed Jul 19 18:22:41 EDT 2006 --><TITLE>ContentAccessService (IBM WebSphere Portal Version 6.0.0.0 API Docs)</TITLE><META NAME="keywords" CONTENT="com.ibm.portal.portlet.service.contentaccess.ContentAccessService interface"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="ContentAccessService (IBM WebSphere Portal Version 6.0.0.0 API Docs)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../serialized-form.html"><FONT CLASS="NavBarFont1"><B>Serialized</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="ContentAccessService.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><A NAME="main"></A><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">com.ibm.portal.portlet.service.contentaccess</FONT><BR>Interface ContentAccessService</H2><DL><DT><B>All Superinterfaces:</B> <DD><A HREF="../../../../../../com/ibm/portal/portlet/service/PortletService.html" title="interface in com.ibm.portal.portlet.service">PortletService</A></DD></DL><HR><DL><DT>public interface <B>ContentAccessService</B><DT>extends <A HREF="../../../../../../com/ibm/portal/portlet/service/PortletService.html" title="interface in com.ibm.portal.portlet.service">PortletService</A></DL><P>Service to access external and internal resources. This on-demand proxy allows the creation of a URL or Stream which can then be passed to other classes without knowing about the proxy support to enable seemless adaption to proxied environments. The proxying will be provided to the URL object by means of a StreamHandler.<P><P><DL><DT><B>Since:</B></DT> <DD>5.1</DD></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.io.InputStream</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/ibm/portal/portlet/service/contentaccess/ContentAccessService.html#getInputStream(java.lang.String, javax.portlet.PortletRequest, javax.portlet.PortletResponse)">getInputStream</A></B>(java.lang.String urlString, javax.portlet.PortletRequest req, javax.portlet.PortletResponse resp)</CODE><BR> Returns an input stream that reads from the passed url.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/ibm/portal/portlet/service/contentaccess/ContentAccessService.html#getMarkup(java.lang.String, javax.portlet.PortletRequest, javax.portlet.RenderResponse)">getMarkup</A></B>(java.lang.String urlString, javax.portlet.PortletRequest req, javax.portlet.RenderResponse resp)</CODE><BR> Returns the markup of the input stream read from the passed url.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.net.URL</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/ibm/portal/portlet/service/contentaccess/ContentAccessService.html#getURL(java.lang.String, javax.portlet.PortletRequest, javax.portlet.PortletResponse)">getURL</A></B>(java.lang.String urlString, javax.portlet.PortletRequest request, javax.portlet.PortletResponse response)</CODE><BR> Returns an URL object after following redirects using a proxy if necessary</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/ibm/portal/portlet/service/contentaccess/ContentAccessService.html#include(java.lang.String, javax.portlet.RenderRequest, javax.portlet.RenderResponse, javax.portlet.PortletContext)">include</A></B>(java.lang.String urlString, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, javax.portlet.PortletContext context)</CODE><BR> Writes the content of the given url to the output stream of the portlet following redirects and using a proxy if necessary.</TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="getURL(java.lang.String, javax.portlet.PortletRequest, javax.portlet.PortletResponse)"><!-- --></A><H3>getURL</H3><PRE>public java.net.URL <B>getURL</B>(java.lang.String urlString, javax.portlet.PortletRequest request, javax.portlet.PortletResponse response) throws java.io.IOException</PRE><DL><DD>Returns an URL object after following redirects using a proxy if necessary<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>urlString</CODE> - a string representing the start url<DD><CODE>request</CODE> - the portlet request<DD><CODE>response</CODE> - the portlet response<DT><B>Returns:</B><DD>URL object based on the given url string and the proxy configuration<DT><B>Throws:</B><DD><CODE>java.net.MalformedURLException</CODE> - if the given urlString is a malformed URL.<DD><CODE>java.io.IOException</CODE> - if a required credential could not be retrieved or the expected URL could not been created.</DL></DD></DL><HR><A NAME="getInputStream(java.lang.String, javax.portlet.PortletRequest, javax.portlet.PortletResponse)"><!-- --></A><H3>getInputStream</H3><PRE>public java.io.InputStream <B>getInputStream</B>(java.lang.String urlString, javax.portlet.PortletRequest req, javax.portlet.PortletResponse resp) throws java.io.IOException</PRE><DL><DD>Returns an input stream that reads from the passed url.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>urlString</CODE> - a string representing the start url<DD><CODE>req</CODE> - <DD><CODE>resp</CODE> - <DT><B>Returns:</B><DD>InputStream from the proxied connection<DT><B>Throws:</B><DD><CODE>java.net.MalformedURLException</CODE> - thrown if the URL is invalid<DD><CODE>java.io.IOException</CODE> - thrown if the portlet service fails</DL></DD></DL><HR><A NAME="getMarkup(java.lang.String, javax.portlet.PortletRequest, javax.portlet.RenderResponse)"><!-- --></A><H3>getMarkup</H3><PRE>public java.lang.String <B>getMarkup</B>(java.lang.String urlString, javax.portlet.PortletRequest req, javax.portlet.RenderResponse resp) throws java.io.IOException</PRE><DL><DD>Returns the markup of the input stream read from the passed url.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>urlString</CODE> - a string representing the start url<DD><CODE>req</CODE> - <DD><CODE>resp</CODE> - <DT><B>Returns:</B><DD>String representing the markup of the proxied connection<DT><B>Throws:</B><DD><CODE>java.net.MalformedURLException</CODE> - thrown if the URL is invalid.<DD><CODE>java.io.IOException</CODE> - thrown if the portlet service fails.</DL></DD></DL><HR><A NAME="include(java.lang.String, javax.portlet.RenderRequest, javax.portlet.RenderResponse, javax.portlet.PortletContext)"><!-- --></A><H3>include</H3><PRE>public void <B>include</B>(java.lang.String urlString, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, javax.portlet.PortletContext context) throws java.io.IOException</PRE><DL><DD>Writes the content of the given url to the output stream of the portlet following redirects and using a proxy if necessary. If the URL is relative and a request dispatcher is given, the service first attempts to include it using the request dispatcher, to handle local servlets or JSPs<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>urlString</CODE> - a string representing the url<DD><CODE>request</CODE> - the portlet request<DD><CODE>response</CODE> - the portlet response<DD><CODE>context</CODE> - the context for including relative URLs, may be null<DT><B>Throws:</B><DD><CODE>java.net.MalformedURLException</CODE> - thrown if the URL is invalid.<DD><CODE>java.io.IOException</CODE> - thrown if the portlet service fails.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../serialized-form.html"><FONT CLASS="NavBarFont1"><B>Serialized</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="ContentAccessService.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -