Restricting a file on a network [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm currently running a Java app over a network and I'm using one system as the server. The clients can create documents such as receipts and other things but they're all stored on a folder in the server system. But now I have an issue the folder had to be shared and it's permission set to read and write for every client to be able to read and write to that folder and cos of this users can directly access this folder on the network and see the files or even delete the files in the folder but I don't want this.
So is it possible to have a folder where all clients can read or write files to on the server system but cannot directly access the folder through the network?

Normally you would have a service, such as a web service which allows users to upload files. There is command line tools to do this as well as being able to do this with a web browser. There is a number of way of doing this based on your preferred choice.
Another approach is to give each use a folder they and only they can access (your application also). One folder per client/user. You can monitor these folders and detect when a new file appears and move it to a folder only your can access.

Related

Connection between server and client [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
In our organization, We have one server in which one folder Log/Response is there. In this folder so many files will be there (XML file). Now I want to write a program to find all XML files which has a 'keyword' in Java, if possible. And after finding all such file it should return all files name. Here 'keyword' will be given from client (means user will open one URL/keyword from his browser).
So how can I achieve this thing? Which technology, language and tool I need to use? If I write a program then where exactly I should put it?
You can start from JSP/Servlet as starting point. JSP/Servlet will be communication point between user and server infrastructure where a list of files is located.
To search necessary file: as simple solution you can scan all files in necessary directory. But it will be slow. As more advanced solution, you should use some full text search engine(search will be fast).
Of course, JSP/Servlet will be deployed in servlet container such as Jetty or Tomcat.
That is all :)

How to share my android code? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I've been working on an Android app for a company and now I have to pass it off to another software engineer. How do I pass on everything via email? is there something I can do to export everything in eclipse so someone can continue where I left off?
I'm assuming that you're not using a version control system.
Go get one now. Run - Don't walk.
Get the company to invest a couple of bucks in a private Github account or something similar. Get your code into the version control system, and then send your replacement the credentials to log into the version control system.
To perform a one-time move of your project, right-click the project, select Export and select Archive file under the General node. You can attach that archive file to an email and pass it on; the other developer can simply import this Eclipse project archive.
For continuous code-sharing use version control, such as git, on a shared repository. Bitbucket offers free service, even for closed-source projects, and there are other providers out there. Version control has the added benefit of allowing you tagging, branching, etc... it's really the only practical way to develop and deploy well-used apps.
go to you workspace folder. find your application folder.
attach it to .RAR and send this RAR to the other guy. the other guy will have to import the application via eclipse just by "Importing an existence application"
P.S: email clients such as GMAIL has some security issues with some extensions, that's why i mentioned to use .RAR extension. i'm trying to be simple as such.

Set root application of domain on host server [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am struggling badly to set my application as the default. It's running on a private jvm hosted by a hosting company I've tried renaming it to ROOT and it becomes accessible by mydomain/index.html. So now I need to make it accessible without the index.html.
The most important thing to note is that this app is not deployed in tomcat/webapps/. It is deployed in tomcat/domain/mydomain/. That is the way my host has it set up and maps the directories to their given domains in the conf/server.xml file.
I've tried several approaches and no luck, also the hosts support has give me the run around since Monday, at one point breaking my application.
Take a look at the <welcome-file-list> tag which can be used in your web.xml. A good explanation of this can be found here: http://wiki.metawerx.net/wiki/Web.xml.WelcomeFileList
you need to add ROOT.xml file in conf/Catalina/localhost directory to Set root application of domain.Please refer to this link for more info. Tomcat 6: How to change the ROOT application

Setup ITHit WebDAV server with MySQL [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have downloaded the ITHit WebDAV server (java version) and wanted to know if there is any examples/documentation on implementing this with MySQL (both examples are for Oracle) database or for simple file system based storage.
Since I'm just getting started ANY additional documentation or examples would be greatly appreciated.
We have MySql sample and use it internally for testing purposes. Please write us and we will send it to you. We do not publish it because it duplicates most of the Oracle sample code.
Currently there is no any examples other then with Oracle provided with IT Hit WebDAV Server Library for Java. We are working to create more samples.
The main reason why we do not create a sample with file system is that to store file locks we need to create external files. This may clatter your storage.
In case of the file system sample for WebDAV Server Engine for .Net we store locks in NTFS alternate file streams, so there is no any extra files are created in file system. With Java is more difficult, and probably goes outside of the idea of the 'Sample'.

Access local network files with android [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want to acces files on my LAN (on a NAS or PC) by an Android app like I can do on Windows by typing \pcname\ in the explorer. I know this is possible on Android, because there are other apps that do this (e.g. https://play.google.com/store/apps/details?id=com.rhmsoft.fm).
I already tried accessing the file as a local file (new File("\\pcname\")). Needless to say this did not work. I searched the web for tutorials, but every tutorial I found was using ftp, http and so on.
Using java.net.URL you can use ftp urls like ftp://servername/path/to/file. To access windows share, you need to use the SMB protocol (there is similar question: How to access share folder in windows through android and read files )

Categories

Resources