org.pentaho.platform.dataaccess.datasource.wizard.service.gwt
Class CsvDatasourceServiceServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
org.pentaho.platform.dataaccess.datasource.wizard.service.gwt.CsvDatasourceServiceServlet
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, ICsvDatasourceService
public class CsvDatasourceServiceServlet
- extends com.google.gwt.user.server.rpc.RemoteServiceServlet
- implements ICsvDatasourceService
- See Also:
- Serialized Form
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet |
getSerializationPolicy, processCall, processPost |
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
doPost |
Methods inherited from class javax.servlet.http.HttpServlet |
service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CsvDatasourceServiceServlet
public CsvDatasourceServiceServlet()
stageFile
public ModelInfo stageFile(java.lang.String fileName,
java.lang.String delimiter,
java.lang.String enclosure,
boolean isFirstRowHeader,
java.lang.String encoding)
throws java.lang.Exception
- Specified by:
stageFile
in interface ICsvDatasourceService
- Throws:
java.lang.Exception
getStagedFiles
public FileInfo[] getStagedFiles()
throws java.lang.Exception
- Specified by:
getStagedFiles
in interface ICsvDatasourceService
- Throws:
java.lang.Exception
stageData
public FileTransformStats stageData(ModelInfo modelInfo,
boolean truncateTable)
throws java.lang.Exception
- Specified by:
stageData
in interface ICsvDatasourceService
- Throws:
java.lang.Exception
getPreviewRows
public java.util.List<java.lang.String> getPreviewRows(java.lang.String filename,
boolean isFirstRowHeader,
int rows,
java.lang.String encoding)
throws java.lang.Exception
- Specified by:
getPreviewRows
in interface ICsvDatasourceService
- Throws:
java.lang.Exception
getEncoding
public java.lang.String getEncoding(java.lang.String fileName)
- Specified by:
getEncoding
in interface ICsvDatasourceService
listDatasourceNames
public java.util.List<java.lang.String> listDatasourceNames()
throws java.io.IOException
- Specified by:
listDatasourceNames
in interface ICsvDatasourceService
- Throws:
java.io.IOException