Searched refs:map (Results 1 - 25 of 190) sorted by relevance

12345678

/glassfish-3.1.2/tests/quicklook/web/jruby/helloapp/config/
H A Droutes.rb41 ActionController::Routing::Routes.draw do |map|
45 # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
49 # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
53 # map.resources :products
56 # map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
59 # map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
62 # map.resources :products do |products|
68 # map.namespace :admin do |admin|
73 # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
74 # map
[all...]
/glassfish-3.1.2/tests/community/web/jruby/helloapp/config/
H A Droutes.rb41 ActionController::Routing::Routes.draw do |map|
45 # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
49 # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
54 # map.connect '', :controller => "welcome"
58 map.connect ':controller/service.wsdl', :action => 'wsdl'
61 map.connect ':controller/:action/:id.:format'
62 map.connect ':controller/:action/:id'
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/util/
H A DMapBuilder.java47 * Convenience class for building a literal map.
55 private final Map<K,V> map; field in class:MapBuilder
57 public MapBuilder(Map<K,V> map) { argument
58 this.map = map;
62 this.map = new HashMap<K,V>();
66 map.put(k,v);
71 * Returns the fully constructed map.
74 return map;
/glassfish-3.1.2/common/glassfish-api/src/main/java/org/glassfish/api/admin/
H A DParameterBridge.java64 * @param map is the original set of parameters as used to inject the supplemented
69 public String getOne(ParameterMap map, String resourceName); argument
76 * @param map is the original set of parameters as used to inject the supplemented
81 public List<String> get(ParameterMap map, String resourceName); argument
88 public String getOne(ParameterMap map, String resourceName) { argument
89 return map.getOne(resourceName);
93 public List<String> get(ParameterMap map, String resourceName) { argument
94 return map.get(resourceName);
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/universal/
H A DPropertiesDecoder.java69 Map<String,String> map = new HashMap<String,String>();
73 addPair(map, element);
76 return map;
79 private static void addPair(Map<String, String> map, String element) { argument
99 map.put(element, null);
104 map.put(element.substring(0, index), null);
108 map.put(element.substring(0, index), element.substring(index + 1));
/glassfish-3.1.2/common/common-util/src/test/java/com/sun/enterprise/universal/xml/
H A DSysPropsHandlerTest.java88 Map<String, String> map = instance.getCombinedSysProps();
89 assertTrue(map.size() == 1);
90 assertTrue(map.get("test").equals("from-server"));
101 map = instance.getCombinedSysProps();
103 assertTrue(map.size() == 4);
104 assertTrue(map.get("test").equals("from-server"));
105 assertTrue(map.get("test2").equals("from-cluster"));
106 assertTrue(map.get("test3").equals("from-config"));
107 assertTrue(map.get("test4").equals("from-domain"));
/glassfish-3.1.2/installer/src/cpp/share/launcher/zlib-1.1.4/
H A Dzconf.h254 # pragma map(deflateInit_,"DEIN")
255 # pragma map(deflateInit2_,"DEIN2")
256 # pragma map(deflateEnd,"DEEND")
257 # pragma map(inflateInit_,"ININ")
258 # pragma map(inflateInit2_,"ININ2")
259 # pragma map(inflateEnd,"INEND")
260 # pragma map(inflateSync,"INSY")
261 # pragma map(inflateSetDictionary,"INSEDI")
262 # pragma map(inflate_blocks,"INBL")
263 # pragma map(inflate_blocks_ne
[all...]
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/universal/xml/
H A DSysPropsHandler.java68 Map<String, String> map = new HashMap<String, String>(domain);
69 map.putAll(config);
70 map.putAll(cluster);
71 map.putAll(server);
73 return map;
85 void add(Type type, Map<String, String> map) { argument
86 if (type == null || map == null)
91 server.putAll(map);
94 cluster.putAll(map);
97 config.putAll(map);
[all...]
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/universal/collections/
H A DCollectionUtils.java61 Map<String,String> map = new HashMap<String,String>();
71 map.put(name.toString(), null);
73 map.put(name.toString(), value.toString());
75 return map;
81 * @param map The map to turn into a printable String
84 public static String toString(Map<String,String> map) { argument
85 String[] arr = toStringArray(map);
122 public static String[] toStringArray(Map<String,String> map) { argument
123 Set<String> set = map
[all...]
/glassfish-3.1.2/admin/launcher/src/main/java/com/sun/enterprise/admin/launcher/
H A DJavaConfig.java54 JavaConfig(Map<String, String> map) { argument
55 this.map = map;
59 return map;
63 return map.get("java-home");
78 String cp = map.get("classpath-prefix");
89 String s = map.get(NATIVE_LIB_PREFIX);
99 String cp = map.get("classpath-suffix");
110 String s = map.get(NATIVE_LIB_SUFFIX);
119 String cp = map
208 private Map<String, String> map; field in class:JavaConfig
[all...]
H A DRespawnInfo.java60 void put(Map<String, String> map) throws GFLauncherException { argument
62 map.put(PREFIX + "classname", classname);
63 map.put(PREFIX + "classpath", classpath);
64 putArgs(map);
75 private void putArgs(Map<String, String> map) throws GFLauncherException { argument
93 map.put(PREFIX + "args", argLine.toString());
H A DArgumentManager.java92 return map;
103 map.put(name, args.get(++i));
109 map.put("default", args.get(i));
112 return map;
115 Map<String,String> map = new HashMap<String,String>(); field in class:ArgumentManager
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/util/
H A DCharsetMapper.java76 * Utility class that attempts to map from a Locale to the corresponding
131 map.load(stream);
150 private Properties map = new Properties();
152 protected Properties map = new Properties(); field in class:CharsetMapper
171 charset = map.getProperty(locale.toString());
176 charset = map.getProperty(locale.getLanguage());
191 map.put( locale, charset );
200 clone.map = (Properties)map.clone();
H A DEnumerator.java146 * @param map Map whose values should be enumerated
148 public Enumerator(Map<?, T> map) { argument
150 this(map.values().iterator());
158 * @param map Map whose values should be enumerated
161 public Enumerator(Map<?, T> map, boolean clone) { argument
163 this(map.values().iterator(), clone);
H A DParameterMap.java73 * Catalina internal parameter map objects to user classes without having
92 * Construct a new, empty map with the default initial capacity and
103 * Construct a new, empty map with the specified initial capacity and
106 * @param initialCapacity The initial capacity of this map
116 * Construct a new, empty map with the specified initial capacity and
119 * @param initialCapacity The initial capacity of this map
120 * @param loadFactor The load factor of this map
130 * Construct a new map with the same mappings as the given map.
132 * @param map Ma
134 ParameterMap(Map<K,V> map) argument
233 putAll(Map<? extends K,? extends V> map) argument
[all...]
/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/utils/xml/
H A DXmlMap.java55 private final Map<String, Object> map; field in class:XmlMap
59 this.map = new HashMap<String, Object>();
62 public XmlMap(String name, Map<String, Object> map) { argument
64 this.map = map;
69 this.map = new HashMap<String, Object>();
71 map.put(entry.getKey().toString(), entry.getValue());
77 map.put(key, value);
84 Node mapNode = document.createElement("map");
86 for (Map.Entry<String, Object> entry : map
[all...]
/glassfish-3.1.2/web/web-glue/src/main/java/com/sun/enterprise/web/logger/
H A DFileLoggerHandlerFactory.java62 private static ConcurrentMap<String, FileLoggerHandler> map = field in class:FileLoggerHandlerFactory
69 FileLoggerHandler handler = map.get(logFile);
75 map.put(logFile, handler);
82 map.remove(logFile);
/glassfish-3.1.2/admingui/core/src/main/java/org/glassfish/admingui/theme/
H A DAdminguiThemeContext.java91 Map map = context.getExternalContext().getApplicationMap();
93 ThemeContext themeContext = (ThemeContext) map.get(themeKey);
96 map.put(themeKey, themeContext);
106 Map map = context.getExternalContext().getApplicationMap();
110 ThemeContext themeContext = (ThemeContext) map.get(themeKey);
113 map.put(themeKey, themeContext);
124 Map map = new HashMap();
128 map.put(ThemeContext.DEFAULT_THEME, theme);
132 map.put(ThemeContext.DEFAULT_THEME_VERSION, version);
133 return map;
[all...]
/glassfish-3.1.2/cluster/admin/src/main/java/com/sun/enterprise/v3/admin/cluster/
H A DCreateNodeImplicitCommand.java97 ParameterMap map = new ParameterMap();
98 map.add("DEFAULT", name);
99 map.add(NodeUtils.PARAM_NODEDIR, nodedir);
100 map.add(NodeUtils.PARAM_INSTALLDIR, installdir);
101 map.add(NodeUtils.PARAM_NODEHOST, nodehost);
102 map.add(NodeUtils.PARAM_TYPE,"CONFIG");
104 ci.parameters(map);
H A DNodeUtils.java164 // Put node values into parameter map and validate
165 ParameterMap map = new ParameterMap();
166 map.add("DEFAULT", node.getName());
167 map.add(NodeUtils.PARAM_INSTALLDIR, node.getInstallDir());
168 map.add(NodeUtils.PARAM_NODEHOST, node.getNodeHost());
169 map.add(NodeUtils.PARAM_NODEDIR, node.getNodeDirAbsolute());
173 map.add(NodeUtils.PARAM_REMOTEPORT, sshc.getSshPort());
175 map.add(NodeUtils.PARAM_REMOTEUSER, ssha.getUserName());
176 map.add(NodeUtils.PARAM_SSHKEYFILE, ssha.getKeyfile());
177 map
192 validate(ParameterMap map) argument
201 validateRemote(ParameterMap map, String nodehost) argument
230 validateSsh(ParameterMap map, String nodehost) argument
443 validateRemoteConnection(ParameterMap map) argument
455 validateDcomConnection(ParameterMap map) argument
470 validateSSHConnection(ParameterMap map) argument
658 parseType(ParameterMap map) argument
[all...]
H A DDeleteNodeSshCommand.java88 final protected void setTypeSpecificOperands(List<String> command, ParameterMap map) { argument
90 command.add(map.getOne(NodeUtils.PARAM_REMOTEPORT));
93 command.add(map.getOne(NodeUtils.PARAM_REMOTEUSER));
95 String key = map.getOne(NodeUtils.PARAM_SSHKEYFILE);
H A DCreateNodeConfigCommand.java113 ParameterMap map = new ParameterMap();
114 map.add("DEFAULT", name);
116 map.add(NodeUtils.PARAM_NODEDIR, nodedir);
118 map.add(NodeUtils.PARAM_INSTALLDIR, installdir);
120 map.add(NodeUtils.PARAM_NODEHOST, nodehost);
121 map.add(NodeUtils.PARAM_TYPE,"CONFIG");
122 ci.parameters(map);
/glassfish-3.1.2/connectors/connectors-runtime/src/main/java/com/sun/enterprise/connectors/authentication/
H A DRuntimeSecurityMap.java64 public boolean equals(Object map) { argument
65 if (map instanceof RuntimeSecurityMap) {
66 RuntimeSecurityMap rsm = (RuntimeSecurityMap) map;
/glassfish-3.1.2/admingui/devtests/src/test/java/org/glassfish/admingui/devtests/
H A DJsonUtilTest.java100 Map<String, Object> map = (Map<String, Object>)JSONUtil.jsonToJava("{'x':['foo',null ,{'a':true, 'b':false }]}");
101 assertEquals(1, map.size());
102 assertTrue(map.get("x") instanceof List);
103 assertEquals(3, ((List)map.get("x")).size());
104 assertTrue(((List)map.get("x")).get(2) instanceof Map);
106 map = (Map<String, Object>)JSONUtil.jsonToJava("{ 'key' : \"value\" ,\n \r \"key2\" : { 'innerKey' : [ 3.3E-2 , false , 800e+8, null , 37 , \"test\" ] , \n \"innerKey2\" : {'a' : 'b', 'c' : 'd'}, 'innerKey3' : true} }");
107 assertEquals(2, map.size());
108 assertEquals("value", map.get("key"));
109 assertTrue(map.get("key2") instanceof Map);
114 Map map
[all...]
/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/readers/
H A DJsonParameterMapProvider.java81 ParameterMap map = new ParameterMap();
89 map.add(k, "" + array.get(i));
93 map.add(k, "" + value);
97 return map;
100 ParameterMap map = new ParameterMap();
101 map.add("error", "Entity Parsing Error: " + ex.getMessage());
103 return map;

Completed in 28 milliseconds

12345678