public String encodeEndpointIdentifier(EndpointIdentifier e) { String s = e.getLocalEndpointName(); if (e.getDomainName() != null) { s += "@" + e.getDomainName(); } return s; }
public static int encode(byte[] destination,int offset,EndpointIdentifier endpointIdentifier) { int usedLength=0; byte[] name=endpointIdentifier.getLocalEndpointName().getBytes(); System.arraycopy(name, 0, destination, offset, name.length); usedLength=name.length; if(endpointIdentifier.getDomainName() != null) { destination[offset+usedLength]=StringFunctions.AT_BYTE; usedLength++; name=endpointIdentifier.getDomainName().getBytes(); System.arraycopy(name, 0, destination, offset+usedLength, name.length); usedLength+=name.length; } return usedLength; }
public static int encode(byte[] destination,int offset,EndpointIdentifier endpointIdentifier) { int usedLength=0; byte[] name=endpointIdentifier.getLocalEndpointName().getBytes(); System.arraycopy(name, 0, destination, offset, name.length); usedLength=name.length; if(endpointIdentifier.getDomainName() != null) { destination[offset+usedLength]=StringFunctions.AT_BYTE; usedLength++; name=endpointIdentifier.getDomainName().getBytes(); System.arraycopy(name, 0, destination, offset+usedLength, name.length); usedLength+=name.length; } return usedLength; }
String domainName = event.getEndpointIdentifier().getDomainName();
@Override public void execute(final Object message) throws Exception { final OpenLink request = (OpenLink) message; if(request.primaryEndpointId() != null) primaryEndpointId = new EndpointIdentifier(request.primaryEndpointId(), primaryEndpointId.getDomainName()); if(request.secondaryEndpointId() != null) secondaryEndpointId = new EndpointIdentifier(request.secondaryEndpointId(), secondaryEndpointId.getDomainName()); final String sessionId = Integer.toString(session.id()); final CallIdentifier callId = new CallIdentifier(sessionId); final CreateConnection crcx = new CreateConnection(source, callId, primaryEndpointId, request.mode()); crcx.setNotifiedEntity(agent); crcx.setSecondEndpointIdentifier(secondaryEndpointId); gateway.tell(crcx, source); // Make sure we don't wait for a response indefinitely. getContext().setReceiveTimeout(Duration.create(timeout, TimeUnit.MILLISECONDS)); } }
String domainName = event.getEndpointIdentifier().getDomainName();
String domainName = event.getEndpointIdentifier().getDomainName();