|
Carrot2 v3.6.0-SNAPSHOT
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.source.xml.XmlDocumentSourceHelper
public class XmlDocumentSourceHelper
Exposes the common functionality a IDocumentSource based on XML/XSLT is likely
to need. This helper does note expose any attributes, so that different implementations
can decide which attributes they expose.
| Field Summary | |
|---|---|
int |
timeout
Data transfer timeout. |
| Constructor Summary | |
|---|---|
XmlDocumentSourceHelper()
|
|
| Method Summary | |
|---|---|
ProcessingResult |
loadProcessingResult(InputStream xml,
Templates stylesheet,
Map<String,String> xsltParameters)
Loads a ProcessingResult from the provided InputStream, applying
XSLT transform if specified. |
ProcessingResult |
loadProcessingResult(String url,
Templates stylesheet,
Map<String,String> xsltParameters,
Map<String,Object> metadata,
String user,
String password)
Loads a ProcessingResult from the provided remote URL, applying XSLT
transform if specified. |
Templates |
loadXslt(IResource xslt)
Loads the XSLT stylesheet from the provided IResource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int timeout
| Constructor Detail |
|---|
public XmlDocumentSourceHelper()
| Method Detail |
|---|
public ProcessingResult loadProcessingResult(String url,
Templates stylesheet,
Map<String,String> xsltParameters,
Map<String,Object> metadata,
String user,
String password)
throws Exception
ProcessingResult from the provided remote URL, applying XSLT
transform if specified. This method can handle gzip-compressed streams if supported
by the data source.
metadata - if a non-null map is provided, request metadata will
be put into the map.user - if not null, the user name to use for HTTP Basic
Authenticationpassword - if not null, the password to use for HTTP Basic
Authentication
Exception
public ProcessingResult loadProcessingResult(InputStream xml,
Templates stylesheet,
Map<String,String> xsltParameters)
throws Exception
ProcessingResult from the provided InputStream, applying
XSLT transform if specified. The provided InputStream will be closed.
Exceptionpublic Templates loadXslt(IResource xslt)
IResource.
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||