input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
protected string get string option string key string def string value string options get key if value null value def return value | returns an option string with a default |
protected void set basic authentication url target string user info target get user info if user info null java util string tokenizer tok new java util string tokenizer user info if tok has more tokens call set username tok next token if tok has more tokens call set password tok next token | helper to transfer url authentication information into engine |
protected void stop service throws exception super stop service tear down all running web services is this really what you want to do not leave services running anyway for iterator apps new java util array list deployments values iterator apps has next deployment info info deployment info apps next try unregister through server so it s bookeeping is up to date server invoke main deployer mbean object name undeploy new object info new string org elba deployment deployment info catch exception e log error could not undeploy deployment info e axis server stop super stop service my deployment info null | what to do to stop axis temporarily undeploy the servlet |
public object get object key first try a direct lookup object result super get method key get name if result null if that is unsuccessful we try to lookup the class interface itself result super get method key get declaring class get name if that is not specified we simply extract the un qualified classname if result null string sresult method key get declaring class get name if sresult index of 1 sresult sresult substring sresult last index of 1 result sresult return result | returns default interface if no mapping of method interface is defined |
public object put object key object value if key instanceof method return super put method key get name value else if key instanceof class return super put class key get name value else return super put key value | registers an interface name for a given class or method |
public void set editor final string editor this editor editor | the code set editor code method specifies the fully qualified |
public object get object key object result super get method key get name if result null result method key get name return result | returns default interface if no mapping is defined |
public boolean accepts deployment info sdi if sdi short name ends with axis xml sdi local cl get resource constants web service descriptor null return true return false | provides a filter that decides whether a file can be deployed by |
public object put object key object value if key instanceof method return super put method key get name value else return super put key value | registers a new method |
private void read object object input stream stream throws ioexception class not found exception stream default read object try to find the engine that we were attached to engine configuration new engine service factory get engine configuration root context if new engine null call new call new service new engine else not there try the default config call new call new service url endpoint new url end point call set target endpoint address endpoint set basic authentication endpoint | serialization helper to reattach to engine must be private |
protected void reset class loader message context msg context class loader loader class loader msg context get property constants old classloader property if loader null msg context set property constants old classloader property null thread current thread set context class loader loader | reset the thread associated classloader to some old value stored in the |
public void deploy service wsddservice service service deploy to registry this get service2 class loader put service get qname thread current thread get context class loader | put a wsddservice into this deployment replacing any other |
public void invoke message context msg context engine configuration engine config msg context get axis engine get config if engine config instanceof xmlresource provider xmlresource provider config xmlresource provider engine config class loader new loader config get my deployment get class loader new qname null msg context get target service if new loader null class loader current loader thread current thread get context class loader if new loader equals current loader msg context set property constants old classloader property current loader thread current thread set context class loader new loader | reroutes the thread associated classloader to |
public class loader get class loader qname service name return class loader get service2 class loader get service name | retrieve the classloader that loaded the given service |
public void create deployment info sdi throws deployment exception log4j logger plugin log get logger plugin get category l7dlog priority debug constants about to create axis 0 new object sdi null if deployments contains key sdi url throw new deployment exception attempting to redeploy a depoyed module sdi url else deployments put sdi url sdi | describe code create code method here |
public string get mbean name return this mbean name | gets the flash axis service mbean name |
public map get parms return parms | gets additional parameters for flash movie |
protected void copy children document source doc element source string match element target node list children source get child nodes for int count 0 count children get length count node act node children item count if act node instanceof element if element act node get local name equals match target append child source doc import node act node true | this tiny helper copies all children of the given element that |
public void set schedule period long p period if p period 0 throw new invalid parameter exception schedulable period may be not less or equals than 0 m schedule period p period m is restart pending true | sets the schedule period between two scheduled call |
public interface home extends ejbhome public item service create throws create exception remote exception | home of the itemservice |
public interface home extends ejbhome public business partner service create throws create exception remote exception | home of the bpservice |
public interface home extends ejblocal home public business partner create string name throws create exception public business partner find by primary key string name throws finder exception public collection find all throws finder exception | home interface of the businesspartner entity bean |
public interface home extends ejbhome public order service create throws create exception | home of the itemservice |
public engine configuration get client engine configuration return client configuration | return the associated client configuration |
public engine configuration get server engine configuration return server configuration | return the associated server configuration |
public void test basic throws exception axis invocation handler handler create axis invocation handler new url jmx end point assert equals testing basic invocation elba handler invoke remote adaptor get default domain new object 0 assert equals testing complex invocation boolean true handler invoke remote adaptor is registered new object new object name axis jmx name | tests a very untyped basic call through the normal invocation handler |
public void test mbean handler throws exception mbean invocation handler handler create mbean invocation handler new url jmx end point assert equals testing mbean specific invocation elba handler invoke remote adaptor get default domain new object 0 new class 0 assert equals testing custom serializer boolean true handler invoke remote adaptor is registered new object new object name axis jmx name new class object name class | tests a very untyped basic call through the mbean invocation handler |
public void test adaptor throws exception remote adaptor handler create remote adaptor new url jmx end point assert equals testing handler elba handler get default domain assert true testing handler with custom serializer handler is registered new object name axis jmx name | tests the typed adaptor access |
public void set up throws exception super set up hello hello create axis service hello class new url hello end point | setup the bean |
protected string get axis configuration return hello client super get axis configuration | where the config is stored |
public void test hello throws exception assert equals return value must be hello hello hello world hello world | test a simple hello world |
public axis server get axis server return axis server | return the associated server |
public void deploy axis string name throws exception super deploy name | deploy a an axis web service |
protected void do call string message url target throws exception buffered reader reader new buffered reader new input stream reader target open stream try string line reader read line assert not null message proper response line finally reader close | tests a successful http call to the given target |
public void undeploy axis string name throws exception super undeploy name | undeploy a web service |
public void test servlet throws exception do call servlet availability new url protocol axis context servlet axis servlet do call service availability new url end point do call list command new url protocol axis context servlet axis servlet list do call service list new url end point list | tests availability of the servlet under various contexts |
public void set up throws exception super set up federation federated service create axis service federated service class new url federated end point | setup the bean |
protected string get axis configuration return external client super get axis configuration | where the config is stored |
public void test federated throws exception string result federation find and translate elba is a killer server and mr fleury is a damned genius system out println for your pleasure result assert equals got the translation right elba ist ein m rderbediener und herr fleury ist ein verdammtes genie result | test a federated call |
protected elba test services create test services return new axis test services get class get name | overrides services creation to install axis services |
public void set up throws exception super set up interface map put address book class http net elba org samples address book phone phone new phone phone set exchange 0 6897 phone set number 6666 phone set area code 49 state type state state type from string tx address new address address set street num 42 address set street name milky way address set city galactic city address set zip 2121 address set state state address set phone number phone book address book create axis service address book class new url address end point | sets up the test |
protected void deploy axis string name throws exception axis test services delegate deploy axis name | deploy a web service |
protected string get axis configuration return addr client super get axis configuration | this is where the axis config is stored |
protected string get axis configuration return client config xml | searches for the right configuration provider |
protected void undeploy axis string name throws exception axis test services delegate undeploy axis name | undeploy a web service |
public void test address throws exception book add entry george address assert equals comparing addresses address book get address from name george | routes an address to the server and tests the result |
protected string get axis configuration return store client super get axis configuration | where the config is stored |
public void test item throws exception item new item item service create item that is immediately to delete assert equals entity name item that is immediately to delete new item get name item service delete new item | test a simple hello world |
public ejbhome get ejbhome return home | obtains the home interface of the enterprise bean |
public void set mbean server mbean server mbean server this mbean server mbean server | sets this servants code mbean server code |
public policy copy return new codebase policy codebase | returns a copy of the policy object |
public int policy type return type | returns the constant value that corresponds to the type of the policy |
static public primitive analysis get primitive analysis class cls if cls null throw new illegal argument exception null class if cls void type return void analysis if cls boolean type return boolean analysis if cls character type return char analysis if cls byte type return byte analysis if cls short type return short analysis if cls integer type return int analysis if cls long type return long analysis if cls float type return float analysis if cls double type return double analysis throw new illegal argument exception not a primitive type cls get name | get a singleton instance representing one of the peimitive types |
public class get return type return method get return type | return my java return type |
public object get object value throws remote exception return null | accessor of type object |
public int get value throws remote exception return 0 | gets the current value of the autonumber |
public parameter mode get mode 1 3 4 4 says we always map to idl in parameters return parameter mode param in | return my attribute mode |
public void set value int value throws remote exception | sets the current value of the autonumber |
public string get type idlname logger debug parameter analysis get type idlname cls cls get name type idlname type idlname return type idlname | return the idl type name of my parameter type |
public string get exception repository id return exception repository id | return the repository id for the mapping of this analysis |
public void write params output stream out object params int len params length if len param writers length throw new runtime exception cannot marshal parameters unexpected number of parameters for int i 0 i len i param writers i write out params i | marshals the sequence of method parameters into an output stream |
public boolean is non void return retval writer null | returns true if this code skeleton strategy code s method |
public void write retval output stream out object ret val retval writer write out ret val | marshals into an output stream the return value of the method |
public boolean is non void return retval reader null | returns true if this code stub strategy code s method is non void |
public void write exception output stream out exception e int len excep writers length for int i 0 i len i if excep writers i get exception class is instance e excep writers i write out e return throw new unknown exception e | marshals into an output stream an exception thrown by the method |
public object read retval input stream in return retval reader read in | unmarshals from an input stream the return value of the method |
public void write output stream out object excep out write string repos id out write value exception excep clz | writes an exception to a cdr output stream |
public exception read exception input stream in string repository id in read string class exception class class exception map get repository id if exception class null return new unexpected exception repository id else return exception in read value exception class | unmarshals from an input stream an exception thrown by the method |
public boolean is public return public member | returns true iff this member has private visibility |
public boolean is declared exception throwable t iterator iterator exception list iterator while iterator has next if class iterator next is instance t return true return false | checks if a given code throwable code instance corresponds to an |
public object convert local retval object obj if retval remote interface null return obj else return portable remote object narrow obj retval remote interface | converts the return value of a local invocation into the expected type |
public string get member repository id string member name return member prefix escape irname member name member postfix | return a repository id for a member |
protected array list get contained entries array list ret new array list constants length attributes length operations length for int i 0 i constants length i ret add constants i for int i 0 i attributes length i ret add attributes i for int i 0 i operations length i ret add operations i return ret | return a list of all the entries contained here |
protected void calculate operation analysis map operation analysis map new hash map operation analysis oa map the operations for int i 0 i operations length i oa operations i operation analysis map put oa get idlname oa map the attributes for int i 0 i attributes length i attribute analysis attr attributes i oa attr get accessor analysis not having an accessor analysis means that the attribute is not in a remote interface if oa null operation analysis map put oa get idlname oa oa attr get mutator analysis if oa null operation analysis map put oa get idlname oa | calculate the map that maps idl operation names to operation analyses |
public string get idlmodule name if idl module name null string pkg name cls get package get name string buffer b new string buffer while equals pkg name int idx pkg name index of string n idx 1 pkg name pkg name substring 0 idx b append append util java to idlname n pkg name idx 1 pkg name substring idx 1 idl module name b to string return idl module name | return the fully qualified idl module name that this |
protected void calculate all type ids if is rmi idl remote interface all type ids new string 0 else array list a new array list interface analysis intfs get interfaces for int i 0 i intfs length i string ss intfs i get all type ids for int j 0 j ss length j if a contains ss j a add ss j all type ids new string a size 1 all type ids 0 get repository id for int i 1 i a size i all type ids i string a get a size i | calculate the array containing all type ids of this interface |
public void insert value any any if type string class any insert wstring string value 1 3 5 10 map to wstring else util insert any primitive any value | insert the constant value into the argument any |
public value analysis get super analysis return super analysis | returns the superclass analysis or null if this inherits from |
protected string to hex string int i string s integer to hex string i to upper case if s length 8 return 00000000 substring 0 8 s length s else return s | convert an integer to a 16 digit hex string |
public boolean is abstract value return abstract value | returns true if this value is abstract |
public void set initial repetitions long p number of calls if p number of calls 0 p number of calls 1 m initial repetitions p number of calls m is restart pending true | sets the initial number of scheduled calls |
public boolean is custom return externalizable has write object method | returns true if this value is custom |
public boolean is externalizable return externalizable | returns true if this value implements java |
protected string to hex string long l string s long to hex string l to upper case if s length 16 return 0000000000000000 substring 0 16 s length s else return s | convert a long to a 16 digit hex string |
protected array list get contained entries array list ret new array list constants length attributes length members length for int i 0 i constants length i ret add constants i for int i 0 i attributes length i ret add attributes i for int i 0 i members length i ret add members i return ret | return a list of all the entries contained here |
public void shutdown poa poa get poa try poa deactivate object poa reference to id get reference catch user exception ex logger warn could not deactivate ir object ex | unexport this object |
protected orb get orb return repository orb | return the orb for this irobject |
protected poa get poa return repository poa | return the poa for this irobject |
protected boolean is accessor method m class return type m get return type if m get name starts with get if m get name starts with is return type boolean type return false if return type void type return false if m get parameter types length 0 return false return has non app exceptions m | check if a method is an accessor |
protected boolean is mutator method m if m get name starts with set return false if m get return type void type return false if m get parameter types length 1 return false return has non app exceptions m | check if a method is a mutator |
protected boolean has non app exceptions method m class ex m get exception types for int i 0 i ex length i if java rmi remote exception class is assignable from ex i return false return true | check if a method throws anything checked other than |
protected void analyze fields fields cls get fields fields cls get declared fields f flags new byte fields length for int i 0 i fields length i int mods fields i get modifiers if modifier is final mods modifier is static mods modifier is public mods f flags i f constant | analyze the fields of the class |
protected string attribute read name string name if name starts with get name name substring 3 else if name starts with is name name substring 2 else throw new illegal argument exception not an accessor name return name | convert an attribute read method name in java format to |
protected string attribute write name string name if name starts with set name name substring 3 else throw new illegal argument exception not an accessor name return name | convert an attribute write method name in java format to |
public repository get reference return repository helper narrow impl get reference | return a corba reference to this ir |
public void shutdown impl shutdown | deactivate all corba objects in this ir |
protected void calculate class hash code the simple cases if cls is interface class hash code 0 else if serializable class is assignable from cls class hash code 0 else if externalizable class is assignable from cls class hash code 1 else go ask util class for the hash code class hash code util get class hash code cls | return the class hash code as specified in the common object |
protected string escape irname string name string buffer b new string buffer for int i 0 i name length i char c name char at i if c 256 b append c else b append u append to hex string int c return b to string | escape non iso characters for an ir name |
public string get idlname return idl name | return my unqualified idl name |
public attribute mode get mode return mode | return my attribute mode |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.