Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2002-2013 the original author or authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  * http://www.apache.org/licenses/LICENSE-2.0
  *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.springframework.messaging.simp.user;
A simple container for the result of parsing and translating a "user" destination in some source message into a set of actual target destinations by calling UserDestinationResolver.

Author(s):
Rossen Stoyanchev
Since:
4.0.2
public class UserDestinationResult {
	private final String sourceDestination;
	private final Set<StringtargetDestinations;
	private final String subscribeDestination;
	private final String user;
	public UserDestinationResult(String sourceDestination,
			Set<StringtargetDestinationsString subscribeDestinationString user) {
		Assert.notNull(sourceDestination"'sourceDestination' must not be null");
		Assert.notNull(targetDestinations"'targetDestinations' must not be null");
		Assert.notNull(subscribeDestination"'subscribeDestination' must not be null");
		Assert.notNull(user"'user' must not be null");
		this. = sourceDestination;
		this. = targetDestinations;
		this. = subscribeDestination;
		this. = user;
	}


The "user" destination as found in the headers of the source message.

Returns:
a destination, never null
		return this.;
	}

The result of parsing the source destination and translating it into a set of actual target destinations to use.

Returns:
a set of destination values, possibly an empty set
		return this.;
	}

The canonical form of the user destination as would be required to subscribe. This may be useful to ensure that messages received by clients contain the original destination they used to subscribe.

Returns:
a destination, never null
		return this.;
	}

The user associated with the user destination.

Returns:
the user name, never null
	public String getUser() {
		return this.;
	}
New to GrepCode? Check out our FAQ X