input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public ejblocal object create local home invocation mi throws exception the persistence manager takes care of the wiring and creating the ejblocal object get entity persistence manager create entity mi get method mi get arguments entity enterprise context mi get enterprise context the context implicitely carries the ejbobject increment create count return entity enterprise context mi get enterprise context get ejblocal object | local home interface implementation |
public string get name string n name if n null n url get file return n | get the name of this web application |
public boolean is metrics enabled return metrics enabled | checks if this container factory initializes the metrics interceptor |
public void set url url url if url null throw new illegal argument exception null url this url url | set the url from which this web application was deployed |
public web meta data get meta data return meta data | getter for property meta data |
protected void start service throws exception host must be set to continue either by user or detection if get host null throw new missing attribute exception host start the web server running server start log info started web server with address server get bind address get port set the rmi codebase if it is not already set string codebase system get property java rmi server codebase if codebase null codebase http get host get port system set property java rmi server codebase codebase log info using rmi server codebase codebase | start the web server for dynamic downloading of classes and resources |
public void set meta data web meta data meta data this meta data meta data | setter for property meta data |
public void post create local home invocation mi throws exception the persistence manager takes care of the post create step get entity persistence manager post create entity mi get method mi get arguments entity enterprise context mi get enterprise context | delegates to the persistence manager post create entity method |
public void run while running if work is available then execute it if work null try work run catch exception e debug logger exception e clear work work null return to pool of cached idle threads return worker this wait for more work to become available synchronized this while running work null try this wait catch interrupted exception e ignore | the worker loop |
public void set java2 class loading compliance boolean flag java2 class loading compliance flag | set the flag indicating if the normal java2 parent first class loading |
public void reset persistence context entity enterprise context ctx only reset stats if the read has timed out if is read timed out ctx return clear the field state set field state ctx null if has foreign key return for iterator fields foreign key fields iterator fields has next jdbccmpfield bridge field jdbccmpfield bridge fields next field reset persistence context ctx | resets the persistence context of the foreign key fields |
public void set catch system out final boolean flag this catch system out flag | set the catch tt system |
public object name get web service name return web service name | get the web service name value |
public boolean get unpack wars return unpack wars | set the flag indicating if war archives should be unpacked |
public boolean get catch system out return catch system out | get the catch tt system |
public void set web service name object name web service name this web service name web service name | set the web service name value |
public void set unpack wars boolean flag this unpack wars flag | get the flag indicating if war archives should be unpacked |
public void set catch system err final boolean flag this catch system err flag | set the catch tt system |
public void post create home invocation mi throws exception the persistence manager takes care of the post create step get entity persistence manager post create entity mi get method mi get arguments entity enterprise context mi get enterprise context | delegates to the persistence manager post create entity method |
public object name get transaction manager service name return transaction manager service name | get the transaction manager service name value |
public boolean get catch system err return catch system err | get the catch tt system |
public ejbobject create home invocation mi throws exception the persistence manager takes care of the wiring and creating the ejbobject get entity persistence manager create entity mi get method mi get arguments entity enterprise context mi get enterprise context the context implicitely carries the ejbobject increment create count return entity enterprise context mi get enterprise context get ejbobject | this method takes care of the wiring of the ejbobject trio |
public void set transaction manager service name object name transaction manager service name this transaction manager service name transaction manager service name | set the transaction manager service name value |
public ejbobject get ejbobject invocation mi ejbproxy factory ci get proxy factory if ci null throw new illegal state exception all we need is an ejbobject for this id return ejbobject ci get entity ejbobject mi get id | a method for the get ejbobject from the handle |
public boolean get log4j quiet mode return log4j quiet mode | get the org |
public void add mime type string extension string type mime types put extension type | augment the type suffix to mime type mappings |
public void set log4j quiet mode boolean flag this log4j quiet mode flag | set the org |
public void start throws ioexception thread pool enable try server new server socket port backlog bind address if log is debug enabled log debug started server server listen catch ioexception e throw e | start the web server on port and begin listening for requests |
public int get refresh period return refresh period | get the refresh period |
public void stop try server socket srv server server null srv close catch exception e thread pool disable | close the web server listening socket |
public boolean is deployed string war url return deployment map contains key war url | see if a war is deployed |
public void set refresh period final int refresh period this refresh period refresh period | set the refresh period |
public void remove class loader class loader cl string key get class loader key cl loader map remove key | remove a class loader previously added via add class loader |
public url get configuration url return config url | get the log4j configuration url |
public web application get deployed app string war url web application app info web application deployment map get war url return app info | get the web application object for a deployed war |
protected string get class loader key class loader cl string class name cl get class get name int dot class name last index of if dot 0 class name class name substring dot 1 string key class name cl hash code return key | create the string key used as the key into the loader map |
public void set configuration url final url url this config url url | set the log4j configuration url |
public void on exception jmsexception ex current thread thread current thread log warn jms provider failure detected ex boolean try it true while try it not stoped log info trying to reconnect to jms provider try try thread sleep reconnect interval catch interrupted exception ie try it false return reboot container invoker inner stop invoker destroy service invoker start service try it false log info reconnected to jms provider catch exception e log error reconnect failed jms provider failure detected e current thread null | description of the method |
public void flush cache get instance cache flush | flush the cache |
protected string get mime type string path int dot path last index of string type text html if dot 0 the suffix is the type extension without the string suffix path substring dot 1 string mime type mime types get property suffix if mime type null type mime type return type | lookup the mime type for the suffix of the path argument |
public void set logger level final string name final string level name org apache log4j logger logger org apache log4j logger get logger name trim level level xlevel to level level name trim logger set level level log info level set to level for name | sets the level for a logger of the give name |
public iterator get deployed applications return deployment map values iterator | returns the applications deployed by the web container subclasses |
public string to string return super to string max messages nr max messages nr max pool size max pool size reconnect interval reconnect interval provider adapter jndi provider adapter jndi server session pool factory jndi server session pool factory jndi acknowledge mode acknowledge mode is container managed tx is container managed tx is not supported tx is not supported tx use dlq use dlq dlq handler dlq handler | return a string representation of the current config state |
public void set logger levels final string list final string level name string tokenizer stok new string tokenizer list while stok has more tokens string name stok next token set logger level name level name | sets the levels of each logger specified by the given comma |
public string get logger level final string name org apache log4j logger logger org apache log4j logger get logger name level level logger get level if level null return level to string return null | gets the level of the logger of the give name |
public element get config return null | an accessor for any configuration element set via set config |
public void reconfigure throws ioexception if timer task null throw new illegal state exception service stopped or not started timer task reconfigure | force the logging system to reconfigure |
public void reconfigure final string url throws ioexception malformed urlexception set configuration url strings to url url reconfigure | hack to reconfigure and change the url |
public void set config element config | this method is invoked to import an arbitrary xml configuration tree |
public void set app configuration entry app configuration entry login modules access controller check permission set config entry perm this login modules login modules | set an application authentication configuration |
public boolean add member principal user boolean is member members contains key user if is member false members put user user return is member false | adds the specified member to the group |
public boolean abort throws login exception security association clear return true | method to abort the authentication process phase 2 |
public list get dirty foreign key fields entity enterprise context ctx if has foreign key return collections empty list list dirty fields new array list for iterator iter this foreign key fields iterator iter has next jdbccmp2x field bridge fk field jdbccmp2x field bridge iter next if fk field is dirty ctx dirty fields add fk field return dirty fields | returns dirty foreign key fields |
public boolean is member principal member if principal stack size 0 return false object active principal principal stack get first return member equals active principal | returns true if the passed principal is a member of the group |
public object name get manager service name return this manager service name | the jmx object name string of the security manager service |
public void set manager service name object name manager service name this manager service name manager service name | set the jmx object name string of the security manager service |
public void save file store file throws ioexception file output stream fos new file output stream store file object output stream oos new object output stream fos synchronized info map oos write object info map oos close fos close | save the current in memory map of verifier info to the indicated |
public void set cache policy cache policy domain cache this domain cache domain cache log debug cache policy set to domain cache | the domain cache is typically a shared object that is populated |
public void set clean foreign key fields entity enterprise context ctx for iterator iter this foreign key fields iterator iter has next jdbccmp2x field bridge fk field jdbccmp2x field bridge iter next fk field set clean ctx | marks foreign key fields as clean |
public string get callback handler class name return this callback handler class name | get the default callback handler implementation class name |
public void flush cache if domain cache null domain cache flush | not really used anymore as the security manager service manages the |
public string get verifier source jndi name return verifier source jndi name | get the jndi name for the srpverifier source implementation binding |
public void set verifier source jndi name string jndi name this verifier source jndi name jndi name | set the jndi name for the srpverifier source implementation binding |
public object invoke object proxy method method object args throws throwable object ret null try ret method invoke server args catch invocation target exception e throw e get target exception catch throwable e e print stack trace throw e return ret | the invocation handler invoke method |
public void close string username throws security exception remote exception this close username 0 | close the srp session for the given username |
public string get authentication cache jndi name return cache jndi name | get the jndi name under which the authentication cache policy is found |
public string get jndi name return server jndi name | get the jndi name under which the srpserver interface proxy should be bound |
public subject get active subject return security association get subject | get the currently authenticated subject |
public void set jndi name string jndi name this server jndi name jndi name | set the jndi name under which the srpserver interface proxy should be bound |
public void initialize subject subject callback handler handler map shared state map options this subject subject this handler handler this shared state shared state cache jndi name string options get cache jndi name log trace cache jndi name cache jndi name domain name string options get domain name | initialize the login module |
public void set authentication cache jndi name string jndi name this cache jndi name jndi name | set the jndi name under which the authentication cache policy is found |
public boolean commit throws login exception if login failed true return false set principals subject get principals principals add user principal subject get public credentials add client challenge byte session key session get session key srpparameters params session get parameters set private credentials subject get private credentials private credentials add params if params cipher algorithm null secret key spec secret key new secret key spec session key params cipher algorithm private credentials add secret key else private credentials add session key return true | all login modules have completed the login phase commit if we |
public boolean is valid principal principal object credential return is valid principal credential null | validate that the given credential is correct for principal |
protected string get users password throws login exception return null | overriden to return null |
public int get default cache timeout return default cache timeout | get the default timed cache policy timeout |
public int get authentication cache timeout return cache timeout | get the auth cache timeout period in seconds |
public void initialize subject subject callback handler callback handler map shared state map options module name string options get module name if module name null system out println required module name option not given return load the delegate module using the thread class loader class loader loader thread current thread get context class loader try class clazz loader load class module name delegate login module clazz new instance catch throwable t system out println proxy login module failed to load module name t print stack trace return delegate initialize subject callback handler shared state options | initialize this login module |
public void set ejbcontext ejbcontext ctx if set context method null object args ctx try set context method invoke delegate args catch exception e e print stack trace | called by the security proxy interceptor prior to a method invocation |
public boolean login throws login exception if module name null throw new login exception required module name option not given if delegate null throw new login exception failed to load login module module name return delegate login | perform the login |
public boolean commit throws login exception if login failed true return false if principal class name null throw new login exception no principal class name specified associate an instance of principal with the subject user principal new srpprincipal username session id subject get principals add user principal set private credentials subject get private credentials private credentials add session key if session id null private credentials add session id if params cipher algorithm null object secret key create secret key params cipher algorithm session key private credentials add secret key private credentials add params return true | all login modules have completed the login phase comit if we |
public void set authentication cache timeout int timeout in secs this cache timeout timeout in secs | set the auth cache timeout period in seconds |
private void get user info throws login exception get the security association info if handler null throw new login exception no callback handler provied security association callback sac new security association callback callback callbacks sac try handler handle callbacks user principal sac get principal client challenge byte sac get credential sac clear credential catch java io ioexception e throw new login exception e to string catch unsupported callback exception uce throw new login exception unsupported callback uce get callback to string catch class cast exception e throw new login exception credential info is not of type byte e get message | obtain the principal and credentials that are to be authenticated |
public principal get principal principal principal principal result principal get the caller principal group member synchronized domain cache domain info info get cache info principal false if info null result info caller principal if the mapping did not have a caller principal just use principal if result null result principal return result | map the argument principal from the deployment environment principal |
public void set default cache timeout int timeout in secs this default cache timeout timeout in secs | set the default timed cache policy timeout |
public int get authentication cache resolution return cache resolution | get the auth cache resolution period in seconds |
private boolean validate cache srpserver session session byte challenge session get client response boolean is valid arrays equals challenge client challenge return is valid | this method obtains the session get client response value which |
public void set authentication cache resolution int res in secs this cache resolution res in secs | set the auth cache resolution period in seconds |
public boolean login simple principal run as role new simple principal role name security association push run as role run as role pushed role true return true | push the run as role using the security association |
public boolean does user have role principal principal set role principals boolean has role false check that the caller is authenticated to the current thread subject subject get active subject if subject null check the caller s roles synchronized domain cache domain info info get cache info principal false group roles null if info null roles info roles if roles null iterator iter role principals iterator while has role false iter has next principal role principal iter next has role does role group have role role roles return has role | does the current subject have a role a principal that equates to one |
public boolean commit return abort | calls abort to pop the run as role |
protected void map remote methods class bean remote if bean remote null return class delegate class delegate get class method methods bean remote get methods for int m 0 m methods length m method rm methods m class parameter types rm get parameter types string name rm get name try method match delegate class get method name parameter types method map put rm match catch no such method exception e if strict string msg missing method rm in delegate throw new security exception msg | performs a mapping from the methods declared in the bean remote class to |
public boolean abort if pushed role false return false security association pop run as role return true | pop the run as role using the security association |
public int get default cache resolution return default cache resolution | get the default timed cache policy resolution |
public boolean logout throws login exception try if subject is read only false remove user principal set s subject get principals user principal get class s remove user principal subject get private credentials remove session key if srp server null srp server close username session id int value catch exception e throw new login exception failed to remove user principal e get message return true | remove the user principal associated with the subject |
public void initialize subject subject callback handler callback handler map shared state map options super initialize subject callback handler shared state options ds jndi name string options get ds jndi name if ds jndi name null ds jndi name java default ds object tmp options get principals query if tmp null principals query tmp to string tmp options get roles query if tmp null roles query tmp to string log trace database server login module ds jndi name ds jndi name log trace principals query principals query log trace roles query roles query | initialize this login module |
private field state get field state entity enterprise context ctx jdbccontext jdbc ctx jdbccontext ctx get persistence context field state field state field state jdbc ctx get this if field state null field state new field state ctx jdbc ctx put this field state return field state | gets the field state object from the persistence context |
public boolean does user have role principal principal principal role boolean has role false check that the caller is authenticated to the current thread subject subject get active subject if subject null check the caller s roles synchronized domain cache domain info info get cache info principal false group roles null if info null roles info roles if roles null has role does role group have role role roles return has role | validates operational environment principal against the specified |
public void set default cache resolution int res in secs this default cache resolution res in secs | set the default timed cache policy resolution |
public string get client socket factory return server socket factory name | get the rmiclient socket factory implementation class |
protected boolean validate password string input password string expected password if input password null expected password null return false return input password equals expected password | a hook that allows subclasses to change the validation of the input |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.