Code example for Vector

Methods: add, size, toArray

0
	public static void log(String disseminator, boolean hit, String pid,
			HttpServletRequest request) {
		String username;
		try { 
			username = getRodaClient(request.getSession()).getUsername();
			List<LogEntryParameter> parameters = new Vector<LogEntryParameter>();
			parameters.add(new LogEntryParameter("hostname", request
					.getRemoteHost())); 
			parameters.add(new LogEntryParameter("address", request
					.getRemoteAddr())); 
			parameters.add(new LogEntryParameter("port", request
					.getRemotePort() + "")); 
			parameters.add(new LogEntryParameter("pid", pid));
			LogEntry logEntry = new LogEntry();
			logEntry.setAction("disseminator." + (hit ? "hit" : "miss") + "."
					+ disseminator);
			logEntry.setParameters(parameters
					.toArray(new LogEntryParameter[parameters.size()]));
			logEntry.setUsername(username);
			getRodaWuiClient().getLoggerService().addLogEntry(logEntry);
		} catch (LoginException e) {
			logger.error("Error sending log", e);
		} catch (RODAClientException e) {