@WSDLDocumentationCollection(value=@WSDLDocumentation(value="/*\n* Copyright 2010 Brian Rosenberger (Brutex Network)\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\")\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/",placement=TOP))
public interface FileService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPERATION_BASENAME |
static java.lang.String |
OPERATION_CHANGEGROUP |
static java.lang.String |
OPERATION_CHANGEMODE |
static java.lang.String |
OPERATION_CHANGEOWNER |
static java.lang.String |
OPERATION_COPY |
static java.lang.String |
OPERATION_COPYFILE |
static java.lang.String |
OPERATION_DOWNLOADFILE |
static java.lang.String |
OPERATION_ECHOTOFILE |
static java.lang.String |
OPERATION_LOADRESOURCE |
static java.lang.String |
OPERATION_LOADRESOURCEFROMARCHIVE |
static java.lang.String |
OPERATION_REPLACEINFILE |
static java.lang.String |
OPERATION_REPLACEINFILE2 |
static java.lang.String |
OPERATION_REPLACEINFILEREGEX |
static java.lang.String |
OPERATION_UPLOADFILE |
static java.lang.String |
PARAM_ENCODING |
static java.lang.String |
PARAM_FILE |
static java.lang.String |
PARAM_OVERRIDE |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
basename(java.lang.String filename,
java.lang.String suffix) |
ReturnCode |
changeGroup(FileSetResource res,
java.lang.String group)
Changes the group owner of a file or all files inside specified directories.
|
ReturnCode |
changeMode(FileSetResource res,
java.lang.String perm) |
ReturnCode |
changeOwner(FileSetResource res,
java.lang.String owner)
Changes the owner of a file or all files inside specified directories.
|
ReturnCode |
copy(FileSetResource src,
java.lang.String todir,
boolean plm,
boolean overwrite,
java.lang.String encoding) |
ReturnCode |
copyFile(java.lang.String fromFile,
java.lang.String tofile,
boolean overwrite) |
AttachmentType |
downloadFile(FileResource res) |
ReturnCode |
echo2file(java.lang.String message,
java.lang.String file,
java.lang.String encoding,
boolean append,
boolean create) |
java.lang.String |
loadRes(FileResource res,
java.lang.String encoding) |
java.lang.String |
loadResFromArchive(ArchiveResource res,
java.lang.String encoding) |
ReturnCode |
replaceInFile(FileResource res,
java.lang.String search,
java.lang.String replace) |
ReturnCode |
replaceInFile2(FileResource res,
java.util.List<ReplacePattern> patternList) |
ReturnCode |
replaceInFileRegEx(FileResource res,
java.lang.String search,
java.lang.String replace,
java.lang.String flags) |
java.lang.String |
uploadFile(AttachmentType file) |
static final java.lang.String OPERATION_BASENAME
static final java.lang.String OPERATION_DOWNLOADFILE
static final java.lang.String OPERATION_UPLOADFILE
static final java.lang.String OPERATION_COPY
static final java.lang.String OPERATION_COPYFILE
static final java.lang.String OPERATION_LOADRESOURCE
static final java.lang.String OPERATION_LOADRESOURCEFROMARCHIVE
static final java.lang.String OPERATION_ECHOTOFILE
static final java.lang.String OPERATION_CHANGEOWNER
static final java.lang.String OPERATION_CHANGEMODE
static final java.lang.String OPERATION_CHANGEGROUP
static final java.lang.String OPERATION_REPLACEINFILE
static final java.lang.String OPERATION_REPLACEINFILE2
static final java.lang.String OPERATION_REPLACEINFILEREGEX
static final java.lang.String PARAM_FILE
static final java.lang.String PARAM_ENCODING
static final java.lang.String PARAM_OVERRIDE
@WSDLDocumentation(value="The base name of the given file excluding the suffix.") java.lang.String basename(java.lang.String filename, java.lang.String suffix)
filename
- suffix
- @WSDLDocumentation(value="Download a file from the maschine where the service is running in order to process it with the client. The file is either downloaded as a MTOM attachment or as inline base64 encoded block. Keep in mind that unless you are using MTOM, a lot of java heap memory is used.") AttachmentType downloadFile(FileResource res) throws XServicesFault
res
- XServicesFault
@WSDLDocumentation(value="Send a file from client to web service server using either MTOM attachment or base64 inline attachment.") java.lang.String uploadFile(AttachmentType file) throws XServicesFault
file
- XServicesFault
@WSDLDocumentation(value="Copies a fileset locally on the server.") ReturnCode copy(FileSetResource src, java.lang.String todir, boolean plm, boolean overwrite, java.lang.String encoding) throws XServicesFault
src
- todir
- plm
- overwrite
- encoding
- XServicesFault
@WSDLDocumentation(value="Copies a single file locally on the server") ReturnCode copyFile(java.lang.String fromFile, java.lang.String tofile, boolean overwrite) throws XServicesFault
fromFile
- tofile
- overwrite
- XServicesFault
@WSDLDocumentation(value="Load the content of a resource") java.lang.String loadRes(FileResource res, java.lang.String encoding) throws XServicesFault
res
- encoding
- XServicesFault
@WSDLDocumentation(value="Load the content of a resource") java.lang.String loadResFromArchive(ArchiveResource res, java.lang.String encoding) throws XServicesFault
res
- encoding
- XServicesFault
@WSDLDocumentation(value="Write or append a string to a file") ReturnCode echo2file(java.lang.String message, java.lang.String file, java.lang.String encoding, boolean append, boolean create) throws XServicesFault
message
- file
- encoding
- append
- create
- XServicesFault
ReturnCode changeOwner(FileSetResource res, java.lang.String owner)
res
- Collection of files/ directoriesowner
- Identifier of the new ownerReturnCode changeGroup(FileSetResource res, java.lang.String group)
res
- Collection of files/ directoriesgroup
- Identifier of the new group ownerReturnCode changeMode(FileSetResource res, java.lang.String perm)
res
- perm
- @WSDLDocumentation(value="Replaces everywith a string in an ascii file") ReturnCode replaceInFile(FileResource res, java.lang.String search, java.lang.String replace) throws XServicesFault
res
- search
- replace
- XServicesFault
@WSDLDocumentation(value="Replaces everywith a string in an ascii file") ReturnCode replaceInFile2(FileResource res, java.util.List<ReplacePattern> patternList) throws XServicesFault
res
- patternList
- XServicesFault
@WSDLDocumentation(value="Replaces everywith a string in an ascii file") ReturnCode replaceInFileRegEx(FileResource res, java.lang.String search, java.lang.String replace, java.lang.String flags) throws XServicesFault
res
- search
- replace
- flags
- XServicesFault