Return the agents name.

@return - the agents name.
@throws XMPPErrorException
@throws NoResponseException
@throws NotConnectedException
@throws InterruptedException
178015
public String getName() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
        AgentInfo agentInfo = new AgentInfo();
        agentInfo.setType(IQ.Type.get);
        agentInfo.setTo(workgroupJID);
        agentInfo.setFrom(getUser());
        AgentInfo response = connection.createStanzaCollectorAndSend(agentInfo).nextResultOrThrow();
        return response.getName();
    }
986167
public function getName()
    {
        if (!isset($this->name)) {
            OsDetector::detect($this, $this->getUserAgent());
        }

        return $this->name;
    }
563928
public String getName() {
        String result = super.getName();

        if (result == null) {
            switch (this.code) {
                case 100:
                    result = "Continue";
                    break;
                case 101:
                    result = "Switching Protocols";
                    break;
                case 102:
                    result = "Processing";
                    break;

                case 200:
                    result = "OK";
                    break;
                case 201:
                    result = "Created";
                    break;
                case 202:
                    result = "Accepted";
                    break;
                case 203:
                    result = "Non-Authoritative Information";
                    break;
                case 204:
                    result = "No Content";
                    break;
                case 205:
                    result = "Reset Content";
                    break;
                case 206:
                    result = "Partial Content";
                    break;
                case 207:
                    result = "Multi-Status";
                    break;

                case 300:
                    result = "Multiple Choices";
                    break;
                case 301:
                    result = "Moved Permanently";
                    break;
                case 302:
                    result = "Found";
                    break;
                case 303:
                    result = "See Other";
                    break;
                case 304:
                    result = "Not Modified";
                    break;
                case 305:
                    result = "Use Proxy";
                    break;
                case 307:
                    result = "Temporary Redirect";
                    break;

                case 400:
                    result = "Bad Request";
                    break;
                case 401:
                    result = "Unauthorized";
                    break;
                case 402:
                    result = "Payment Required";
                    break;
                case 403:
                    result = "Forbidden";
                    break;
                case 404:
                    result = "Not Found";
                    break;
                case 405:
                    result = "Method Not Allowed";
                    break;
                case 406:
                    result = "Not Acceptable";
                    break;
                case 407:
                    result = "Proxy Authentication Required";
                    break;
                case 408:
                    result = "Request Timeout";
                    break;
                case 409:
                    result = "Conflict";
                    break;
                case 410:
                    result = "Gone";
                    break;
                case 411:
                    result = "Length Required";
                    break;
                case 412:
                    result = "Precondition Failed";
                    break;
                case 413:
                    result = "Request Entity Too Large";
                    break;
                case 414:
                    result = "Request URI Too Long";
                    break;
                case 415:
                    result = "Unsupported Media Type";
                    break;
                case 416:
                    result = "Requested Range Not Satisfiable";
                    break;
                case 417:
                    result = "Expectation Failed";
                    break;
                case 422:
                    result = "Unprocessable Entity";
                    break;
                case 423:
                    result = "Locked";
                    break;
                case 424:
                    result = "Failed Dependency";
                    break;

                case 500:
                    result = "Internal Server Error";
                    break;
                case 501:
                    result = "Not Implemented";
                    break;
                case 502:
                    result = "Bad Gateway";
                    break;
                case 503:
                    result = "Service Unavailable";
                    break;
                case 504:
                    result = "Gateway Timeout";
                    break;
                case 505:
                    result = "Version Not Supported";
                    break;
                case 507:
                    result = "Insufficient Storage";
                    break;

                case 1000:
                    result = "Connection Error";
                    break;
                case 1001:
                    result = "Communication Error";
                    break;
                case 1002:
                    result = "Internal Connector Error";
                    break;
            }
        }

        return result;
    }
1196847
@Override
	public String getName()
	{
		StringBuilder result = new StringBuilder();
		String prefix = "";

		for (IPOContext ctxt : this)
		{
			String name = ctxt.getName();

			if (name.length() > 0)
			{
				result.append(prefix);
				result.append(name);
				prefix = ", ";
			}
		}

		return result.toString();
	}
147681
public static String getMemberName() throws XDocletException
    {
        if (getCurrentField() != null) {
            return getCurrentField().getName();
        }
        else if (getCurrentMethod() != null) {
            return MethodTagsHandler.getPropertyNameFor(getCurrentMethod());
        }
        else {
            return null;
        }
    }
313497
public Enumeration getHeaderNames() {
        // 321485
        if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {  //306998.15
            logger.logp(Level.FINE, CLASS_NAME,"getHeaderNames", "this->"+this+": ");
        }

        if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
            checkRequestObjectInUse();
        }
        // PK80362 Start
        if( suppressHeadersInRequest == null){        	            
            return _request.getHeaderNames();
        }
        else {// step through the existing enumeration and create a new one without header names listed in custom property     	
            ArrayList alHeaderNames = new ArrayList();
            Enumeration enumHeaderNames = _request.getHeaderNames();
            while( enumHeaderNames.hasMoreElements() ){
                String headerNameParam = (String) enumHeaderNames.nextElement();
                if (!(isHeaderinSuppressedHeadersList(headerNameParam)))
                    alHeaderNames.add(headerNameParam);
            }
            return Collections.enumeration(alHeaderNames); // create new Enumeration
        }
        // return _request.getHeaderNames();
        // PK80362 End
    }
1114984
public String getFieldName() {
        if (!visitingField) {
            throw new IllegalStateException("getFieldName called while not visiting field");
        }
        if (fieldName == null) {
            fieldName = getStringFromIndex(field.getNameIndex());
        }

        return fieldName;
    }
816250
public function getName()
    {
        if (!isset($this->name)) {
            BrowserDetector::detect($this, $this->getUserAgent());
        }

        return $this->name;
    }
234530
public String getName() {
		switch (messageType) {
		case ALLOCATE_REQUEST:
			return "ALLOCATE-REQUEST";
		case ALLOCATE_RESPONSE:
			return "ALLOCATE-RESPONSE";
		case ALLOCATE_ERROR_RESPONSE:
			return "ALLOCATE-ERROR-RESPONSE";
		case BINDING_REQUEST:
			return "BINDING-REQUEST";
		case BINDING_SUCCESS_RESPONSE:
			return "BINDING-RESPONSE";
		case BINDING_ERROR_RESPONSE:
			return "BINDING-ERROR-RESPONSE";
		case CREATEPERMISSION_REQUEST:
			return "CREATE-PERMISSION-REQUEST";
		case CREATEPERMISSION_RESPONSE:
			return "CREATE-PERMISSION-RESPONSE";
		case CREATEPERMISSION_ERROR_RESPONSE:
			return "CREATE-PERMISSION-ERROR-RESPONSE";
		case DATA_INDICATION:
			return "DATA-INDICATION";
		case REFRESH_REQUEST:
			return "REFRESH-REQUEST";
		case REFRESH_RESPONSE:
			return "REFRESH-RESPONSE";
		case REFRESH_ERROR_RESPONSE:
			return "REFRESH-ERROR-RESPONSE";
		case SEND_INDICATION:
			return "SEND-INDICATION";
		case SHARED_SECRET_REQUEST:
			return "SHARED-SECRET-REQUEST";
		case SHARED_SECRET_RESPONSE:
			return "SHARED-SECRET-RESPONSE";
		case SHARED_SECRET_ERROR_RESPONSE:
			return "SHARED-SECRET-ERROR-RESPONSE";
		default:
			return "UNKNOWN-MESSAGE";
		}
	}
1069201
public String getName() {
		String name = this.getNodeName();
		if (this.isLeaf()) {
			int colonIndex = name.indexOf(":");
			if (colonIndex > 0) {
				// Strip the GET/POST etc off
				name = name.substring(colonIndex+1);
			}
		}
		return name; 
	}
1347920
private String getCallerUniqueName() throws WIMApplicationException {
        String uniqueName = null;
        Subject subject = null;
        WSCredential cred = null;

        try {
            /* Get the subject */
            if ((subject = WSSubject.getRunAsSubject()) == null) {
                subject = WSSubject.getCallerSubject();
            }

            /* Get the credential */
            if (subject != null) {
                Iterator<WSCredential> iter = subject.getPublicCredentials(WSCredential.class).iterator();
                if (iter.hasNext()) {
                    cred = iter.next();
                }
            }

            /* Get the unique name */
            if (cred == null)
                return null;
            else
                uniqueName = cred.getUniqueSecurityName();
        } //throw exception in case there is some issue while retrieving authentication details from subject
        catch (Exception excp) {
            excp.getMessage();
            return null;
        }

        //return unique name obtained from subject
        return uniqueName;
    }
270404
protected String createName() {
        final StringBuilder buf = new StringBuilder(128);
        try {
            buf.append(InetAddress.getLocalHost().getHostName()).append(COLON)
                    .append(ManagementFactory.getRuntimeMXBean().getName().split("@")[0]) // PID
                    .append('-').append(this.workerId).append(COLON).append(JAVA_DYNAMIC_QUEUES);
            for (final String queueName : this.queueNames) {
                buf.append(',').append(queueName);
            }
        } catch (UnknownHostException uhe) {
            throw new RuntimeException(uhe);
        }
        return buf.toString();
    }
616886
public IExternalAccess getAgentsExternalAccess(String agent_name) {

        return cmsService.getExternalAccess(getAgentID(agent_name)).get(
                new ThreadSuspendable());
    }
459377
public static X500Name asX500Name(X500Principal p) {
        try {
            X500Name name = (X500Name)principalField.get(p);
            name.x500Principal = p;
            return name;
        } catch (Exception e) {
            throw new RuntimeException("Unexpected exception", e);
        }
    }
1024669
@Override
    public String getMeName()
    {
        if (TraceComponent.isAnyTracingEnabled() && CoreSPIConnection.tc.isEntryEnabled())
            SibTr.entry(CoreSPIConnection.tc, "getMeName", this);
        //get the name of the Message Processor
        String name = _messageProcessor.getMessagingEngineName();
        if (TraceComponent.isAnyTracingEnabled() && CoreSPIConnection.tc.isEntryEnabled())
            SibTr.exit(CoreSPIConnection.tc, "getMeName", name);
        return name;
    }
40125
String getName() {
        int idx = mName.lastIndexOf('/');
        return (idx > 0) ? mName.substring(idx) : mName;
    }
1336680
public String getName() {
        String name = super.getName();
        if (name != null) {
            if (name.equals(getParameterDescriptor().getDisplayName()) ||
                name.length() == 0) {
                name = null;
            }
        }
        
        return name;
    }