Renames createPermissionResponse and fixes createChannelBindErrorResponse in MessageFactory. Patch by Aakash Garg.

This commit is contained in:
paweldomas 2014-06-09 19:35:21 +00:00
parent dce1981d7c
commit 9739220564

View File

@ -760,12 +760,12 @@ public class MessageFactory
channelBindRequest.putAttribute(channelNumberAttribute); channelBindRequest.putAttribute(channelNumberAttribute);
// add a XOR-PEER-ADDRESS // add a XOR-PEER-ADDRESS
XorPeerAddressAttribute peerAddressAttribute = AttributeFactory XorPeerAddressAttribute peerAddressAttribute
.createXorPeerAddressAttribute(peerAddress, = AttributeFactory
tranID); .createXorPeerAddressAttribute(peerAddress, tranID);
channelBindRequest.putAttribute(peerAddressAttribute); channelBindRequest.putAttribute(peerAddressAttribute);
} catch (IllegalArgumentException ex) }
catch (IllegalArgumentException ex)
{ {
logger.log(Level.FINE, "Failed to set message type.", ex); logger.log(Level.FINE, "Failed to set message type.", ex);
} }
@ -795,7 +795,7 @@ public class MessageFactory
*/ */
public static Response createChannelBindErrorResponse(char errorCode) public static Response createChannelBindErrorResponse(char errorCode)
{ {
return createChannelBindErrorResponse(errorCode); return createChannelBindErrorResponse(errorCode, null);
} }
/** /**
@ -861,7 +861,7 @@ public class MessageFactory
* *
* @return CreatePermission Response * @return CreatePermission Response
*/ */
public static Response createPermissionResponse() public static Response createCreatePermissionResponse()
{ {
Response permissionSuccessResponse = new Response(); Response permissionSuccessResponse = new Response();