|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.portlet.view.StreamFilterManager
public class StreamFilterManager
Applies the right stream filter based on the stream content type.
| Constructor Summary | |
|---|---|
StreamFilterManager(DispatchURLFactory dispatchURLFactory,
String contextPath,
String portletNamespace,
RequestType requestType)
Creates a new StreamFilter manager that uses the given portlet URL factory and the given portlet
name-space. |
|
StreamFilterManager(javax.servlet.http.HttpServletRequest request)
Creates a new StreamFilter manager for the given servlet request. |
|
StreamFilterManager(javax.portlet.PortletRequest request,
javax.portlet.MimeResponse response,
String dispatchURL)
Creates a new StreamFilter manager for the given portlet request and response. |
|
| Method Summary | |
|---|---|
void |
filter(String contentType,
Reader reader,
Writer writer)
Applies the right stream filter based on the given content type. |
Set<String> |
getKnownMimeTypes()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamFilterManager(javax.servlet.http.HttpServletRequest request)
StreamFilter manager for the given servlet request.
request - the servlet request whose response will be filtered
public StreamFilterManager(javax.portlet.PortletRequest request,
javax.portlet.MimeResponse response,
String dispatchURL)
StreamFilter manager for the given portlet request and response.
request - the portlet requestresponse - the portlet responsedispatchURL - the URL where the request will be dispatched
public StreamFilterManager(DispatchURLFactory dispatchURLFactory,
String contextPath,
String portletNamespace,
RequestType requestType)
StreamFilter manager that uses the given portlet URL factory and the given portlet
name-space.
dispatchURLFactory - the object used to create portlet URLscontextPath - the servlet context path, used to determine relative servlet URLsportletNamespace - the string used to name-space HTML element identifiers in the context of the portal pagerequestType - the type of the current request| Method Detail |
|---|
public void filter(String contentType,
Reader reader,
Writer writer)
contentType - the stream content typereader - the character stream to be filteredwriter - the resulting character streampublic Set<String> getKnownMimeTypes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||