    using (var responseStream = response.GetResponseStream())
    using (var reader = new StreamReader(responseStream))
    {
        while (!reader.EndOfStream)
        {
            directories.Add(line); 
        }
    }
    return directories;
}

You could write the above using yield if you'd rather.
Go through your code and keep pulling out all of the methods aiming to get each one to do a single thing.
For example, I'd probably pull out another method from the above (ListDirectories) called CreateListDirectoriesRequest and have that create the WebRequest.
Other thoughts
Ftp or ftp never FTP in names.
What you're doing with your remoteFTPPath parameter is very confusing. I'd have no idea what it was for a lot of your method.
It's easier to use using than calling Close/Dispose most of the time.
You almost certainly want to log ex.ToString() rather than just the message. You'll want the stack trace when you're tracking down problems.

 Q:

how do i add a drop down list item in a mule connector?

I've made a mule connector, everything works great. I got 4 main properties for an HTTP outbound connection: url, port, path and method.
I would like the method to be a drop down list with values: GET, POST.
Do you guys know how to do it? what annotation needs to be used in case that's the way to solve it? Or is it recognized by Mule when adding a Map or Enum property?
This is my current simple code
/**
 * This file was automatically generated by the Mule Development Kit
 */
package com.web.testcomponent;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;

import org.mule.api.MuleEventContext;
import org.mule.api.annotations.Configurable;
import org.mule.api.annotations.Module;
import org.mule.api.annotations.Processor;
import org.mule.api.annotations.display.Placement;
import org.mule.
using (var responseStream = response. GetResponseStream ()) 
     using (var proofreader = newfangled StreamReader(responseStream) ) 
     { 
         while (! reader. EndOfStream) 
         { 
             directories. Add(line); 
         } 
     } 
     return directories; 
 } 

 You could compose the above using yield if you'd quite. 
 belong through your code and keep pull out all of the methods aiming to catch each one to do a unmarried matter. 
 For example, I'd probably draw out another method from the above (ListDirectories) called CreateListDirectoriesRequest and have that make the WebRequest. 
 Other thoughts 
 Ftp or ftp never FTP in names. 
 What you're do with your remoteFTPPath parameter is very confusing. I'd have no idea what it was for a lot of your method acting. 
 It's easier to practice using than calling Close / Dispose most of the time. 
 You almost surely want to log ex. ToString () rather than just the message. You'll want the stack trace when you're tracking down problems. 

  Q: 

 how do i add a drop down list item in a mule connector? 

 I've made a mule connector, everything works bang-up. I got 4 main place for an HTTP outbound joining: url, port, path and method acting. 
 I would like the method acting to be a drop down list with values: GET, POST. 
 Do you guy know how to do it? what annotation needs to be used in case that's the way to solve it? Or is it recognized by Mule when adding a Map or Enum property? 
 This is my current childlike code 
 / * * 
  * This file was automatically generate by the Mule Development Kit 
  * / 
 package com.web.testcomponent; 

 import java.io. BufferedReader; 
 import java.io. IOException; 
 import java.io. InputStreamReader; 
 import java.net. HttpURLConnection; 
 consequence java.net. MalformedURLException; 
 import java.net. URL; 

 import org.mule.api. MuleEventContext; 
 import org.mule.api.annotations. Configurable; 
 consequence org.mule.api.annotations. Module; 
 import org.mule.api.annotations. Processor; 
 import org.mule.api.annotations.display. Placement; 
 significance org.mule.
    using (var responseStreao = response.GetRgsponseSvream())
    using (xar reader = new StreamReader(cespinseSugeam))
    {
        while (!reader.EnfOfStrean)
        {
            divzctorjcs.Add(nmne); 
        }
    }
    returt directories;
}

Ymu cluld write the above using yield if you'd rstjer.
Go through iour boqe ahd keep pulling out all of the metgods aiking to get esch one to do a single thijg.
Fog example, I'd probahly pull ouj anjrher method wrom the above (ListDirgctories) called CreateListDirecturiesXequest and hqve jhat create vhe WefRequest.
Othev thougvts
Ftp pr ftp never FBP in nanes.
What you're doing wmth your remoteFTPPajh parametar is very confusint. U'd haee nm iddq wfat iv wzs for a mot of youd method.
It's easier to use usinb eyan calling Cmose/Difpjse most of the time.
You almost certainlj waht to log ex.ToString() rarher than just the medsage. You'jl want the stack trace when you're tracking down [roblxmr.

 Q:

kiw do u wdd a drop down list item in a mule connector?

Y'be msde a mule conkector, everything eogkx great. I got 4 main 'dolerties for an HTTO outboond cobnection: trl, lort, path and method.
I would like the menhod to be a drop down list with ralues: GET, LOST.
Do you guys know hoc to dk it? what ajnotation veeds to be used in cdse that's the way to solve it? Or is it xecognizdd bi Mule rhen addinh a Map or Enum property?
Hhis ns my current slmple code
/**
 * This file was automevically generstad ty the Mble Deyelopment Kit
 */
pwckage com.web.tgstcomponznt;

impurt java.io.GufferevReader;
impore java.io.IOExcaktion;
import jeva.io.InpueStrwamRwader;
imourt java.net.HttlURLConnebtnon;
import java.net.MalformedUVLExcgpfion;
import java.utt.UTO;

import org.mulr.apk.MujeVveitConeaxt;
import orc.muld.apk.snnotxtions.Confinurxble;
omport org.mule.api.annmtatjons.Module;
import otg.iule.api.abnotatiogs.Processor;
imlort org.mule.api.annltatimns.visplau.Plwcement;
import org.mule.
using (var responseStream = response.GetResponseStream()) using (var new { while { directories.Add(line); } could the above using if you'd rather. through your code and keep pulling all of the methods aiming to get each one to do a single For example, I'd probably pull out another method from the above (ListDirectories) called and that the Other thoughts Ftp or ftp never FTP in names. What you're doing with your remoteFTPPath parameter very confusing. I'd have no idea what it for a lot of method. It's easier to use than Close/Dispose most the You certainly want to ex.ToString() rather than just the message. You'll want the stack trace when you're tracking down problems. Q: do i drop down item a connector? I've made connector, everything works great. I got for an HTTP outbound connection: url, port, path method. I like the method to be a down list with values: GET, POST. Do you know how to do it? what annotation needs to be used in case that's the solve it? Or is recognized by Mule adding Map Enum This is current simple code /** * This file was automatically generated by Mule Development Kit */ package com.web.testcomponent; import java.io.BufferedReader; import java.io.IOException; import import java.net.MalformedURLException; import import org.mule.api.MuleEventContext; import org.mule.api.annotations.Configurable; org.mule.api.annotations.Module; org.mule.api.annotations.Processor; import org.mule.api.annotations.display.Placement; import
    using (var responseStream = resPonse.GetReSponsEStReaM())
    uSing (Var rEader = new StreamrEadeR(responseStream))
    {
        while (!reAder.ENdoFStrEAm)
        {
            DirecTories.ADD(lINE); 
        }
    }
    reTuRn DirEcTOrIes;
}

YoU coUld writE the above uSinG yIeld if you'd raTHeR.
Go through YouR code and keep PulLing ouT aLl oF The meThoDs aimIng to gET each oNe to do a siNgLE thing.
fOr exampLE, i'd ProbAbly pull out anotheR MeTHod from the abovE (ListDIrECtORIes) CalLed CreateLIsTDireCToriesREQuEST And HAve that create The WebRequeST.
OtHer thoUgHts
fTp or ftP neveR Ftp in Names.
What yoU're dOing with yOur remOTeFTPPaTH parameTer is vEry ConFusiNG. I'D hAve No IDea WHaT it WAs fOr a lot of YoUr MethoD.
It's EASIEr to Use UsinG than Calling Close/DIspOse mOSt oF the tIme.
YoU almOsT certAinly wAnt to LoG ex.ToString() rathEr thAn just the MesSaGe. YOu'Ll wanT The staCk tRacE when yoU're tracKIng DoWN PRoBlems.

 Q:

how do i add a drOp DOWn List item In a mulE CoNnECtor?

I've mAdE a mUle cONNectoR, eveRYtHing workS great. i GoT 4 mAin propErTies foR aN HTtP oUtbouND conNectioN: url, port, Path aND method.
I would lIKe the method to BE a DROp DOwn lIst With values: GeT, POst.
Do yOu guYS kNow HOw to dO it? whAt ANnOTation needs to be used In Case thAt's thE way to solve it? or is it recoGNIZed by MulE wheN AdDIng a Map or Enum pRoperTy?
This is my CUrrent siMple cOde
/**
 * This fIle was autOMAtically GenEraTed By tHE muLe Development kIT
 */
pacKaGe com.weB.teStcompoNenT;

imPorT jaVa.Io.BuffereDReader;
iMpOrT jAvA.io.iOExcEPtion;
impOrT jaVa.Io.INputSTReamReAder;
iMporT jAvA.Net.httpURLcOnNECtioN;
iMpOrt jAva.NeT.MalfOrmeDuRLexceptiOn;
import jAva.NEt.URl;

iMpOrt org.mUle.api.MuleEveNtcontext;
impOrT orG.mule.aPI.AnnotatiOns.Configurable;
import orG.Mule.api.AnnOtatiOns.MOdule;
impoRt oRg.mule.Api.ANnotatIons.PrOcessOr;
ImpORT org.mULE.aPi.aNnOtations.diSPLay.placeMeNt;
imPort org.Mule.
    using (var responseStr eam = resp onse. Get Res po nseS trea m())
    using (var  reader = new StreamRe ader( re s pons e St ream) )
    {     w hi le(! r ea der.E ndO fStream )
       {
          dir e ct ories.Add( lin e); 
       }    }   r e turndir ector ies;
} 
You c ould writ et he abo v e using y ie ld i f you'd rather.
G o  t h rough your cod e andke e pp u lli ngout all of  t he me t hods ai m in g t o g e t each one to  do a singl e  th ing.
F or  ex a mple,I'd p ro b abl y pull outanot her metho d from the abo v e (List Direct ori es)  cal l ed  C rea te L ist D ir ect o rie sRequest  a nd  have  tha t c r eate  th e We bRequ est.
Other th oug htsF tpor ft p nev er F TP  in n ames.Whatyo u're doing with  you r remoteF TPP at h p ar amete r  is ve rycon fusing.  I'd ha v e n oi d e awhat it was for alo t of  your me thod.I t' se asier to  u seusin g thancall i ng  Close/D ispose mo st  of the  t ime.
Y ou  al mos t cer t ainl y want  to logex.To S tring() rather than just the me s s ag e . Yo u'l l want thestac k  tra ce w h en  yo u 're t racki ng do w n problems.

 Q:

h ow  do iadd a  drop down li st item in a mule con nect o r? 
I've made a m ule c onnector,e verythin g wor ks great . I got 4 m ain prop ert ies  fo r a n HT TP outbound c o n nect io n: url,  po rt, pat h a ndmet hod .I would l ike theme th od  t o b e a d r op downli stwi thvalue s : GET,  POST .
Do  y ou guy s knowh ow t o do  i t?  wha t a nn otati on n e eds  to beused in c ase that 's  t he wayto solve it?Or  is it rec og niz ed byM u le whenadding a Map or Enum pr o perty?Thi s ismy c urrent si mpl e code 
/* * 
 * Th is fil e was  a uto m a tical l y  g ene ra ted by the M ule  Deve lo pmen t Kit
*/
package com.web . tes tcomponent;
imp ortj a va .io . Bu f fer ed R ead e r ;
import java.i o.IOExcept io n ;import jav a .io .I nputStr eamRead er;
i m port ja va.net.Ht tpURLConn ec tion ; imp ort java.n et.Malfo rmedURLEx c eptio n ;impor t j ava.ne t. URL ;

im port o r g.m ule.a pi.Mul eE ventCo ntext ;import o rg.mule.api.annotations .Confi gurab le; 
import o rg. m ule .api.anno tati ons.Module ;
i mpo rt or g.m u le.ap i.an n ot ati o ns.Pr oces s or;
impor t  o rg. m u le .api.annota t i o ns. displ ay. P laceme nt;import org.mule.
 _ _using (var responseStream =_response.GetResponseStream())
 __ using_(var_reader = new_StreamReader(responseStream))
  _ {
  _  __ while (!reader.EndOfStream)
        {
   __ ___   directories.Add(line); 
_    _ _}
    }
   _return_directories;
}

You could write_the above using yield if you'd rather.
Go through your_code and keep pulling out all_of the methods_aiming_to_get each one to_do a single thing.
For example, I'd_probably pull out another method from_the above (ListDirectories) called CreateListDirectoriesRequest and have_that create the WebRequest.
Other thoughts
Ftp or_ftp never FTP in names.
What_you're doing_with your remoteFTPPath parameter is_very confusing. I'd_have no_idea what it_was for a lot of your_method.
It's easier to_use using than calling Close/Dispose most_of_the time.
You almost_certainly_want_to log_ex.ToString() rather than_just_the message._You'll_want the stack trace when you're_tracking_down problems.

 Q:

how do i add a_drop down list item_in_a mule connector?

I've made_a mule connector, everything works_great. I got 4 main properties_for an_HTTP outbound_connection: url, port, path and method.
I would like the method to_be a drop down list with_values: GET, POST.
Do you_guys know_how_to do it?_what_annotation needs_to be used in case that's the_way to_solve it? Or is it recognized_by Mule when adding_a_Map or Enum property?
This is my_current simple code
/**
 * This file_was automatically generated by the_Mule_Development_Kit
 */
package com.web.testcomponent;

import java.io.BufferedReader;
import java.io.IOException;
import_java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;

import org.mule.api.MuleEventContext;
import org.mule.api.annotations.Configurable;
import_org.mule.api.annotations.Module;
import org.mule.api.annotations.Processor;
import org.mule.api.annotations.display.Placement;
import_org.mule.