Can a servlet handle other than HTTP request..?

I was asked this question in a interview. Can anyone clear me this.
Can a servlet handle other than HTTP request..?
If yes, please give me a working example.

Can anyone guide me to achieve this.?
Note: If anyone worked with servlet responding ftp request, please send me the code.
Yes, a servlet can handle requests in other protocols
like FTP.
To achieve this, your Servlet ought to inherit from
javax.servlet.GenericServlet or implement the
javax.servlet.Servlet interface. To code the Servlet,
you should have a working knowledge of ftp protocol.
When your servlet extends
javax.servlet.http.HttpServlet, it can process http
requests only.
Cheers,
ram.

Similar Messages

  • IWeb protocol support for anything OTHER than http and https

    I am extremely disappointed in iWeb. It doesn't even seem to be able to do very simple things.
    All I want to do is to create HTML links to external pages with protocols other than "http" and "https" and it always prepends "http" to the beginning of the URL. This is really really really annoying.
    Apple I hope you are paying attention. iWeb is poorly designed. You are trying to anticipate what end users want...this is a development practice right from the Microsoft Windows Developer book. I sure how the next update to iWeb works properly. I'm so upset about all this...I can't publish podcasts to the web because of all the foolishness with how you handle that, and the confusing directory name issues.
    My podcast URL looks like this:
    http://itpc://www.mysite.com/podcast/News/rss.xml
    I tried (unsuccesfully) to manually create the podcast since the automated version created this:
    itpc://www.bradyconsult.com/podcast/podcast/News/rss.xml
    I'm sure I could fiddle with iWEb and get this to work, but why should I? I've already fiddled with it and simple changes to my site structure totally screw this up. Not to mention, that when it did work, it didn' t even post all my podcasts!!! It skipped the first one and the last one.
    And, for those wondering, i'm not technically clueless. I have a podcast working just fine on two other sites. The appeal to iLife with iWeb and the new podcast feature of GarageBand was to bring all this together in one easy to use, nice package. But it's not nice. Garageband's update is awesome! But iWeb and it's attempts to work with the other iApps is gruesome.
    I expect this garbage from Microsoft...not Apple.
    Can anyone recommend a workaround (and yes, I understand I can manually edit HTML...but I was hoping for a workaround within iWeb) to create html links with support for protocols (aside from http and https) ??
    It's bad enough I have to publish to a folder and then FTP to my site since apple makes that exceedingly difficult to do (I'm sure to increase .mac sales) but all this other foolishness is just bunk. I feel ripped off on my iLife '06 purchase.
    Grrrrrrr......
    G5 Dual 2.3 GHz   Mac OS X (10.4.5)  

    I don't know if this helps you any, but in my humble
    opinion Drake is absolutely correct. iWeb really
    wasn't designed for the pro site builder; it's just
    an entry level site builder. Moreover, it isn't
    really geared for the professional world of internet
    marketing; I think it is really more for the home
    and family group who have at least one thing in
    common: Macs.
    I don't think it was even designed for them. I mean, you can't create an ftp: link, you can't manage multiple site files, there's no way to add "aim:" or "yahoo:" links, etc. It's not mac's they're supporting. It's .mac in particular, maybe, if that.
    The art is kinda nice, but really, the grief in trying to do simple things like a basic href is just absurd. I can do these things easily in Pages. iWeb should certainly be no more difficult.
    Btw, I'm here because I have the same problem - overly restrictive URL's on hyperlinks. I'll probably solve my with a trivial sed script. But even that's tough because they mangle the url. It's not easy to find an encoding suitable for automatic post processing.
    Automator anyone?

  • Are there any other flash players that you can use on Safari other than Adobe

    Are there any other flash players that you can use on Safari other than Adobe?

    Not as far as I am aware.
    The latest version of Adobe FlashPlayer can be obtained from here:
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFl ash
    You can check here:  http://www.adobe.com/products/flash/about/  to see which version you should install for your Mac and OS The latest version, 10.2.152.25 or later, is for Intel Macs only, as Adobe no longer support the PPC platform. Note that the latest Flash Player update only works on YouTube with Safari in 32 bit mode - until YouTube correct this.

  • I use My Time Capsule as a external hard drive, can I transfer files other than wirelessly?

    I use My Time Capsule as a external hard drive, can I transfer files other than wirelessly?

    will TC appear on My desk top?
    It will, if you do the following:
    Open Macintosh HD and locate the Time Capsule icon under the SHARED heading on the left side of he window.
    Click on the Time Capsule icon and a folder representing the drive will appear to the right
    Double click the folder and the drive icon will appear on the desktop

  • [svn:bz-trunk] 17772: Update the url in the tests to use a relative path instead of the default localhost : 8400 so that the tests can pass on appservers other than the default Tomcat .

    Revision: 17772
    Revision: 17772
    Author:   [email protected]
    Date:     2010-09-20 15:02:50 -0700 (Mon, 20 Sep 2010)
    Log Message:
    Update the url in the tests to use a relative path instead of the default localhost:8400 so that the tests can pass on appservers other than the default Tomcat.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationFalseTest/Remoting_NetConnectionTest.mxml
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationTrueTest/Remoting_NetConnectionTest.mxml

    Revision: 17772
    Revision: 17772
    Author:   [email protected]
    Date:     2010-09-20 15:02:50 -0700 (Mon, 20 Sep 2010)
    Log Message:
    Update the url in the tests to use a relative path instead of the default localhost:8400 so that the tests can pass on appservers other than the default Tomcat.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationFalseTest/Remoting_NetConnectionTest.mxml
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationTrueTest/Remoting_NetConnectionTest.mxml

  • Can LSMW upload data other than Master Data

    Dear Friends,
    Can LSMW upload data other than Master Data, e.g. Want to upload the Vendor Invoice line items with single Debit and multiple Credit line items are there and also more than one GL a/c are involved.
    Thanks in advance.
    Regards,
    Mahendra Dev

    The answer is YES.
    There is no issue issue if you have different GL account.
    The issue is if you have multiple line item (which are differeing in each entry).
    For this, if you want to use LSMW, check for program, but not the recording method option.
    Regards,
    Ravi

  • When I open a photo with Preview, it opens all the photos I have viewed previously.  How can I prevent that, other than manually clearing the list after each time?

    When I open a photo with Preview, it opens all the photos I have viewed previously.  How can I prevent that, other than manually clearing the list after each time?

    Close the pictures before you quit Preview. Cmd-opt-q will close all windows and quit. cmd-opt-w will close all windows and not quit.
    Or, Disable automatically opening files that were left open in General System Preferences

  • Can a servlet do something without a request from a client?

    Hi,
    is a servlet only invoked when a client calls doGet() or doPost() or is there a way to let the servlet do something while it is idle.
    Maybe with a thread? Can a servlet start a thread that will work forever? And do servers usually close servlets while it has a thread running?
    thanx

    Servlets are invoked as a result of client request. But you can certainly make your servlet implement the runnable interface to do background processing.
    Imagine a servlet that is processing an image to send to the client but suppose the image processing takes 4-5 minutes to complete. You wouldn't wanna make your client to wait to see the result for 5 minutes. So you may send the partially processed image while still working on the processing in the background. All the subsequent requests from client will see a bit improved image. You can do something like this:
    public class MyServlet extends HttpServlet implements Runnable {
    public void init() throws ServletException {
    //Initialize your thread here
    public void run() {
    // do your background processing here
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    // Handle the request here
    public void destroy() {
    // Be a good programmer and stop your thread here
    Hope it helps.

  • Can the Quiz application executable perform HTTP requests? 

    I am looking to use the quiz application in our website. Our
    devloper has asked the following question?
    Can the application executable perform HTTP requests"?

    Hi,
    I think it is talking the default browser language as US and seraching for the properties file of that language.
    I think the sol for this prob is change the
    Question.properties -
    >Question_en.properties
    Thanks & Regards,
    Lokesh

  • Music in iDVD:  Can it start somewhere other than the beginning?

    I have loaded a song onto the main menu part of the DVD. I'd like the music that plays to not start at the beginning of the song. Is that possible? I'd like it to start about a minute in...

    You could also get WireTap Studio http://www.ambrosiasw.com/utilities/wiretap/
    It will record anything that can make sound on a Mac. You could start your song playing and then hit the record button on WTS just at the point you want. When finished recording, hit the stop button. You will have an audio clip of the portion of the song you want. Just drag it to the desktop and then into iDVD's audio slot in Inspector. Works great! WTS is a very versatile app and can do a lot more than just this, but this is the function I use most.
    Costs $69, but well worth it.

  • I have an audio file that plays automatically and I can't control it other than reduce the volume.  How do I turn it off?

    I have picked up an audio file that I can't control other than reduce the volume.  I don't know how to turn it off and it plays over any other audio.

    Is this an Apple installed audio clip?
    Have you checked to see if all of your browsers doesn't have a web page that is opened that has the audio? (Best thing is to quit all of your browsers to get that out of the way.) If it goes away, then find out which browser (if multiple), and then figure out what page or just close it if you wish.
    Once you get the browsers out of the way and the audio is still playing. Then quit other programs.
    KOT

  • Can Apple TV stream other than iTunes, like Sling Box?

    This may seem like a simple question, but I can't find the answer anywhere. I like to stream TV over the internet. Quite often I stream SlingBox from a friend's house, for example. I also watch tv on hulu and download movies from sources other than iTunes. Can I watch any of these on my TV through the use of Apple tv, or does Apple tv only work with iTunes? Thanks.

    You can also "convert" the files (movies etc) to upload to itunes to play through 3rd party software like iSquint.
    That won't work with a Slingbox, however, because there are no files to convert. It does live streaming from a TV, DVR, etc., over the Internet to a computer using the Slingplayer software or to another TV using a Slingcatcher.

  • BPEL email Notification Service - Can it support protocol other than pop3

    Hi,
    I wanted to confirm can BPEL email Notification Service support protocol for email other than pop3, such as mapi
    Thanks,
    Sachin Sutar

    Currently only pop3 and imap are supported for incoming mail and SMTP for sending email.

  • Can you stream music other than iTunes?

    Can I use Airport Express to stream music, etc from sourcs other than iTunes (i.e. satellite radio streaming over the internet)? Thanks.
    adam

    You will need to use Airfoil.

  • HT201209 I have a .45 cent balance on my account.  How can I delete that other than buying something??

    I have .45cent balance on my iTunes account.  How can I delete that since I cannot purchase anything for that price.

    If you want to change countries and you can't spend it then you can try contacting iTunes Support and ask them if they can remove it so that you can do so : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

Maybe you are looking for

  • URGENT: INDEX BY TABLES IN FORMS 6i

    Hi, i have created a package that manages an Index by Table locally to a form (i.e. not on the server). At one poin in the form, after posting changes, i use a procedure to fill in this table and leave it there for future reference. My problem is tha

  • Copying movies and films from external HDD to new Momentus XT

    I have recently installed a new Momentus XT 500 drive on a mid 2010 macbook pro 13" Drive model - ST95005620AS revision - TD24 Drive seems to be working fine with very fast boot times ect.  However, if I copy across movies from my external drive to t

  • Maintenance Optimizer - Selection of Main Instances

    Hello.  I have configured a Landscape Component in transaction SMSY.  There is a tab called "Selection of Main Instances".   It seems that tab drives what I see when I run the maintenance optimizer.  The checkboxes selected there determine what compo

  • Integrate BRFPLUS in to WEBDYNPRO application

    Hello Experts, we have a requirement  like integration of BRFPLUS in ABAP webdynpro.We found a doubt Doubt :- we have maintained the number range(for ex:- 1234) functionality in BRFPLUS and we want to fetch the number range (for ex:-1234)value  in ou

  • Safe to replace gcc with gcc-multilib?

    It seems to me that every single useful package requires that I replace gcc-libs with gcc-libs-multilibs, binutils with binutils-multilib, and gcc with gcc-multilib, and it's frustrating. I'm trying to install pipelight in order to be able to do onli