|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentAccessService
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.
Method Summary | |
---|---|
java.io.InputStream |
getInputStream(java.lang.String urlString,
javax.portlet.PortletRequest req,
javax.portlet.PortletResponse resp)
Returns an input stream that reads from the passed url. |
java.lang.String |
getMarkup(java.lang.String urlString,
javax.portlet.PortletRequest req,
javax.portlet.RenderResponse resp)
Returns the markup of the input stream read from the passed url. |
java.net.URL |
getURL(java.lang.String urlString,
javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
Returns an URL object after following redirects using a proxy if necessary |
void |
include(java.lang.String urlString,
javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
javax.portlet.PortletContext context)
Writes the content of the given url to the output stream of the portlet following redirects and using a proxy if necessary. |
Method Detail |
---|
java.net.URL getURL(java.lang.String urlString, javax.portlet.PortletRequest request, javax.portlet.PortletResponse response) throws java.io.IOException
urlString
- a string representing the start urlrequest
- the portlet requestresponse
- the portlet response
java.net.MalformedURLException
- if the given urlString is a malformed URL.
java.io.IOException
- if a required credential could not be retrieved
or the expected URL could not been created.java.io.InputStream getInputStream(java.lang.String urlString, javax.portlet.PortletRequest req, javax.portlet.PortletResponse resp) throws java.io.IOException
urlString
- a string representing the start urlreq
- resp
-
java.net.MalformedURLException
- thrown if the URL is invalid
java.io.IOException
- thrown if the portlet service failsjava.lang.String getMarkup(java.lang.String urlString, javax.portlet.PortletRequest req, javax.portlet.RenderResponse resp) throws java.io.IOException
urlString
- a string representing the start urlreq
- resp
-
java.net.MalformedURLException
- thrown if the URL is invalid.
java.io.IOException
- thrown if the portlet service fails.void include(java.lang.String urlString, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, javax.portlet.PortletContext context) throws java.io.IOException
urlString
- a string representing the urlrequest
- the portlet requestresponse
- the portlet responsecontext
- the context for including relative URLs, may be null
java.net.MalformedURLException
- thrown if the URL is invalid.
java.io.IOException
- thrown if the portlet service fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |