public String getWebsocketURL(FacesContext arg0, String arg1) { return m_wrapped.getWebsocketURL(arg0, arg1); } }
/** * <p>The default behavior of this method is to * call {@link ViewHandler#getWebsocketURL(FacesContext, String)} * on the wrapped {@link ViewHandler} object.</p> * * @see ViewHandler#getWebsocketURL(FacesContext, String) * @since 2.3 */ @Override public String getWebsocketURL(FacesContext context, String channel) { return getWrapped().getWebsocketURL(context, channel); }
@Override public String getWebsocketURL(FacesContext context, String channelAndToken) { return getWrapped().getWebsocketURL(context, channelAndToken); }
/** * <p>The default behavior of this method is to * call {@link ViewHandler#getWebsocketURL(FacesContext, String)} * on the wrapped {@link ViewHandler} object.</p> * * @see ViewHandler#getWebsocketURL(FacesContext, String) * @since 2.3 */ @Override public String getWebsocketURL(FacesContext context, String channel) { return getWrapped().getWebsocketURL(context, channel); }
/** * <p>The default behavior of this method is to * call {@link ViewHandler#getWebsocketURL(FacesContext, String)} * on the wrapped {@link ViewHandler} object.</p> * * @see ViewHandler#getWebsocketURL(FacesContext, String) * @since 2.3 */ @Override public String getWebsocketURL(FacesContext context, String channel) { return getWrapped().getWebsocketURL(context, channel); }
/** * <p> * The default behavior of this method is to call * {@link ViewHandler#getWebsocketURL(FacesContext, String)} on the wrapped {@link ViewHandler} * object. * </p> * * @see ViewHandler#getWebsocketURL(FacesContext, String) * @since 2.3 */ @Override public String getWebsocketURL(FacesContext context, String channel) { return getWrapped().getWebsocketURL(context, channel); }
/** * <p> * The default behavior of this method is to call * {@link ViewHandler#getWebsocketURL(FacesContext, String)} on the wrapped {@link ViewHandler} * object. * </p> * * @see ViewHandler#getWebsocketURL(FacesContext, String) * @since 2.3 */ @Override public String getWebsocketURL(FacesContext context, String channel) { return getWrapped().getWebsocketURL(context, channel); }
/** * <p> * The default behavior of this method is to call * {@link ViewHandler#getWebsocketURL(FacesContext, String)} on the wrapped {@link ViewHandler} * object. * </p> * * @see ViewHandler#getWebsocketURL(FacesContext, String) * @since 2.3 */ @Override public String getWebsocketURL(FacesContext context, String channel) { return getWrapped().getWebsocketURL(context, channel); }
/** * <p> * The default behavior of this method is to call * {@link ViewHandler#getWebsocketURL(FacesContext, String)} on the wrapped {@link ViewHandler} * object. * </p> * * @see ViewHandler#getWebsocketURL(FacesContext, String) * @since 2.3 */ @Override public String getWebsocketURL(FacesContext context, String channel) { return getWrapped().getWebsocketURL(context, channel); }
@SuppressWarnings("unchecked") private String register(FacesContext context, Serializable user, String channel, Map<String, String> targetScope, Map<String, String>... otherScopes) { String url = context.getApplication().getViewHandler().getWebsocketURL(context, channel); if (!targetScope.containsKey(channel)) { for (Map<String, String> otherScope : otherScopes) { if (otherScope.containsKey(channel)) { throw new IllegalArgumentException(String.format(ERROR_DUPLICATE_CHANNEL, channel)); } } String channelId = UUID.randomUUID().toString(); ((ConcurrentMap<String, String>) targetScope).putIfAbsent(channel, channelId); } String channelId = targetScope.get(channel); if (user != null) { if (!sessionUsers.containsKey(user)) { sessionUsers.putIfAbsent(user, UUID.randomUUID().toString()); socketUsers.register(user, sessionUsers.get(user)); } socketUsers.addChannelId(sessionUsers.get(user), channel, channelId); } socketSessions.register(channelId); return url + "?" + channelId; }
@SuppressWarnings("unchecked") private String register(FacesContext context, Serializable user, String channel, Map<String, String> targetScope, Map<String, String>... otherScopes) { String url = context.getApplication().getViewHandler().getWebsocketURL(context, channel); if (!targetScope.containsKey(channel)) { for (Map<String, String> otherScope : otherScopes) { if (otherScope.containsKey(channel)) { throw new IllegalArgumentException(String.format(ERROR_DUPLICATE_CHANNEL, channel)); } } String channelId = UUID.randomUUID().toString(); ((ConcurrentMap<String, String>) targetScope).putIfAbsent(channel, channelId); } String channelId = targetScope.get(channel); if (user != null) { if (!sessionUsers.containsKey(user)) { sessionUsers.putIfAbsent(user, UUID.randomUUID().toString()); socketUsers.register(user, sessionUsers.get(user)); } socketUsers.addChannelId(sessionUsers.get(user), channel, channelId); } socketSessions.register(channelId); return url + "?" + channelId; }
@SuppressWarnings("unchecked") private String register(FacesContext context, Serializable user, String channel, Map<String, String> targetScope, Map<String, String>... otherScopes) { String url = context.getApplication().getViewHandler().getWebsocketURL(context, channel); if (!targetScope.containsKey(channel)) { for (Map<String, String> otherScope : otherScopes) { if (otherScope.containsKey(channel)) { throw new IllegalArgumentException(String.format(ERROR_DUPLICATE_CHANNEL, channel)); } } String channelId = UUID.randomUUID().toString(); ((ConcurrentMap<String, String>) targetScope).putIfAbsent(channel, channelId); } String channelId = targetScope.get(channel); if (user != null) { if (!sessionUsers.containsKey(user)) { sessionUsers.putIfAbsent(user, UUID.randomUUID().toString()); socketUsers.register(user, sessionUsers.get(user)); } socketUsers.addChannelId(sessionUsers.get(user), channel, channelId); } socketSessions.register(channelId); return url + "?" + channelId; }
sb.append(","); sb.append("'"+facesContext.getExternalContext().encodeWebsocketURL( facesContext.getApplication().getViewHandler().getWebsocketURL( facesContext, component.getChannel()+"?"+channelToken))+"'"); sb.append(",");