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
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * 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.

Rossen Stoyanchev
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.

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.

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.

a destination, never null
		return this.;

The user associated with the user destination.

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