Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 280815 | Differences between
and this patch

Collapse All | Expand All

(-)servercore/org/eclipse/wst/server/core/IServerAttributes.java (-1 / +44 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2004, 2007 IBM Corporation and others.
2
 * Copyright (c) 2004, 2009 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 10-15 Link Here
10
 *******************************************************************************/
10
 *******************************************************************************/
11
package org.eclipse.wst.server.core;
11
package org.eclipse.wst.server.core;
12
12
13
import java.util.List;
14
import java.util.Map;
15
13
import org.eclipse.core.resources.IFolder;
16
import org.eclipse.core.resources.IFolder;
14
import org.eclipse.core.runtime.*;
17
import org.eclipse.core.runtime.*;
15
/**
18
/**
Lines 298-303 Link Here
298
	public IStatus canModifyModules(IModule[] add, IModule[] remove, IProgressMonitor monitor);
301
	public IStatus canModifyModules(IModule[] add, IModule[] remove, IProgressMonitor monitor);
299
302
300
	/**
303
	/**
304
	 * Get the server attribute value that is stored in this server attribute object.
305
	 * @param attributeName name of the attribute that is being queried.
306
	 * @param defaultValue the default value if the given attribute is not defined.
307
	 * @return the value of the given attribute.
308
	 */
309
	public int getAttribute(String attributeName, int defaultValue);
310
311
	/**
312
	 * Get the server attribute value that is stored in this server attribute object.
313
	 * @param attributeName name of the attribute that is being queried.
314
	 * @param defaultValue the default value if the given attribute is not defined.
315
	 * @return the value of the given attribute.
316
	 */
317
	public boolean getAttribute(String attributeName, boolean defaultValue);
318
319
	/**
320
	 * Get the server attribute value that is stored in this server attribute object.
321
	 * @param attributeName name of the attribute that is being queried.
322
	 * @param defaultValue the default value if the given attribute is not defined.
323
	 * @return the value of the given attribute.
324
	 */
325
	public String getAttribute(String attributeName, String defaultValue);
326
327
	/**
328
	 * Get the server attribute value that is stored in this server attribute object.
329
	 * @param attributeName name of the attribute that is being queried.
330
	 * @param defaultValue the default value if the given attribute is not defined.
331
	 * @return the value of the given attribute.
332
	 */
333
	public List<String> getAttribute(String attributeName, List<String> defaultValue);
334
335
	/**
336
	 * Get the server attribute value that is stored in this server attribute object.
337
	 * @param attributeName name of the attribute that is being queried.
338
	 * @param defaultValue the default value if the given attribute is not defined.
339
	 * @return the value of the given attribute.
340
	 */
341
	public Map getAttribute(String attributeName, Map defaultValue);
342
343
	/**
301
	 * Returns the child module(s) of this module. If this
344
	 * Returns the child module(s) of this module. If this
302
	 * module contains other modules, it should list those
345
	 * module contains other modules, it should list those
303
	 * modules. If not, it should return an empty list.
346
	 * modules. If not, it should return an empty list.
(-)servercore/org/eclipse/wst/server/core/IServerWorkingCopy.java (-1 / +39 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2004, 2008 IBM Corporation and others.
2
 * Copyright (c) 2004, 2009 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 11-16 Link Here
11
package org.eclipse.wst.server.core;
11
package org.eclipse.wst.server.core;
12
12
13
import java.beans.PropertyChangeListener;
13
import java.beans.PropertyChangeListener;
14
import java.util.List;
15
import java.util.Map;
16
14
import org.eclipse.core.resources.IFolder;
17
import org.eclipse.core.resources.IFolder;
15
import org.eclipse.core.runtime.CoreException;
18
import org.eclipse.core.runtime.CoreException;
16
import org.eclipse.core.runtime.IProgressMonitor;
19
import org.eclipse.core.runtime.IProgressMonitor;
Lines 226-231 Link Here
226
	public void setRuntime(IRuntime runtime);
229
	public void setRuntime(IRuntime runtime);
227
230
228
	/**
231
	/**
232
	 * Set the server attribute value that is stored in the server working copy.
233
	 * @param attributeName name of the attribute that needs to be modified.
234
	 * @param value the new value of the given attribute.
235
	 */
236
	public void setAttribute(String attributeName, int value);
237
238
	/**
239
	 * Set the server attribute value that is stored in the server working copy.
240
	 * @param attributeName name of the attribute that needs to be modified.
241
	 * @param value the new value of the given attribute.
242
	 */
243
	public void setAttribute(String attributeName, boolean value);
244
245
	/**
246
	 * Set the server attribute value that is stored in the server working copy.
247
	 * @param attributeName name of the attribute that needs to be modified.
248
	 * @param value the new value of the given attribute.
249
	 */
250
	public void setAttribute(String attributeName, String value);
251
252
	/**
253
	 * Set the server attribute value that is stored in the server working copy.
254
	 * @param attributeName name of the attribute that needs to be modified.
255
	 * @param value the new value of the given attribute.
256
	 */
257
	public void setAttribute(String attributeName, List<String> value);
258
259
	/**
260
	 * Set the server attribute value that is stored in the server working copy.
261
	 * @param attributeName name of the attribute that needs to be modified.
262
	 * @param value the new value of the given attribute.
263
	 */
264
	public void setAttribute(String attributeName, Map value);
265
266
	/**
229
	 * Changes the host for the server.
267
	 * Changes the host for the server.
230
	 * The format of the host can be either a qualified or unqualified hostname,
268
	 * The format of the host can be either a qualified or unqualified hostname,
231
	 * or an IP address and must conform to RFC 2732.
269
	 * or an IP address and must conform to RFC 2732.

Return to bug 280815