Tabnine Logo
Session.readSessionData
Code IndexAdd Tabnine to your IDE (free)

How to use
readSessionData
method
in
de.knightsoftnet.gwtp.spring.client.session.Session

Best Java code snippets using de.knightsoftnet.gwtp.spring.client.session.Session.readSessionData (Showing top 8 results out of 315)

origin: de.knightsoft-net/gwtp-spring-integration-client

@Override
public void onFailure(final Throwable pcaught) {
 try {
  throw pcaught;
 } catch (final ActionException e) {
  switch (this.response.getStatusCode()) {
   case 401: // Unauthorized: happens when session times out
   case 403: // Forbidden: happens when csrf token times out
    this.session.readSessionData();
    break;
   default:
    this.view.showMessage(this.httpMessage.messageHttpCode(this.response.getStatusCode()));
    break;
  }
 } catch (final Throwable e) {
  this.view.showMessage(e.getMessage());
 }
}
origin: de.knightsoft-net/gwtp-spring-integration

@Override
public void onFailure(final Throwable pcaught) {
 try {
  throw pcaught;
 } catch (final ActionException e) {
  switch (this.response.getStatusCode()) {
   case 401: // Unauthorized: happens when session times out
   case 403: // Forbidden: happens when csrf token times out
    this.session.readSessionData();
    break;
   default:
    this.view.showMessage(this.httpMessage.messageHttpCode(this.response.getStatusCode()));
    break;
  }
 } catch (final Throwable e) {
  this.view.showMessage(e.getMessage());
 }
}
origin: de.knightsoft-net/gwtp-spring-integration-client

@Override
public void onFailure(final Throwable pcaught) {
 try {
  throw pcaught;
 } catch (final ActionException e) {
  switch (this.response.getStatusCode()) {
   case 400:
    final ValidationFactory validationFactory = GWT.create(ValidationFactory.class);
    final AutoBean<ValidationResultInterface> validationResultWraper = AutoBeanCodex
      .decode(validationFactory, ValidationResultInterface.class, this.response.getText());
    this.view.setConstraintViolations(
      this.validationConverter.convert(validationResultWraper.as(), this.data));
    break;
   case 401: // Unauthorized: happens when session times out
   case 403: // Forbidden: happens when csrf token times out
    this.session.readSessionData();
    break;
   default:
    this.view.showMessage(this.httpMessage.messageHttpCode(this.response.getStatusCode()));
    break;
  }
 } catch (final Throwable e) {
  this.view.showMessage(e.getMessage());
 }
}
origin: de.knightsoft-net/gwtp-spring-integration

@Override
public void onFailure(final Throwable pcaught) {
 try {
  throw pcaught;
 } catch (final ActionException e) {
  switch (this.response.getStatusCode()) {
   case 400:
    final ValidationFactory validationFactory = GWT.create(ValidationFactory.class);
    final AutoBean<ValidationResultInterface> validationResultWraper = AutoBeanCodex
      .decode(validationFactory, ValidationResultInterface.class, this.response.getText());
    this.view.setConstraintViolations(
      this.validationConverter.convert(validationResultWraper.as(), this.data));
    break;
   case 401: // Unauthorized: happens when session times out
   case 403: // Forbidden: happens when csrf token times out
    this.session.readSessionData();
    break;
   default:
    this.view.showMessage(this.httpMessage.messageHttpCode(this.response.getStatusCode()));
    break;
  }
 } catch (final Throwable e) {
  this.view.showMessage(e.getMessage());
 }
}
origin: de.knightsoft-net/gwtp-dynamic-navigation

/**
 * constructor with injected parameters.
 *
 * @param peventBus event bus
 * @param pview navigation view
 * @param pproxy navigation proxy
 * @param pplaceManager place manager
 * @param pcurrentSession session data
 * @param pnavigationStructure place data
 */
@Inject
public NavigationPresenter(final EventBus peventBus, final NavigationPresenter.MyView pview,
  final MyProxy pproxy, final PlaceManager pplaceManager, final Session pcurrentSession,
  final NavigationStructure pnavigationStructure) {
 super(peventBus, pview, pproxy);
 pview.setPresenter(this);
 placeManager = pplaceManager;
 navigationStructure = pnavigationStructure;
 loginToken = NameTokens.LOGIN;
 logoutToken = NameTokens.LOGOUT;
 peventBus.addHandler(ChangeUserEvent.getType(), this);
 pnavigationStructure.buildVisibleNavigation(null);
 getView().createNavigation(navigationStructure);
 peventBus.addHandler(ChangePlaceEvent.getType(), this);
 pcurrentSession.readSessionData();
}
origin: ManfredTremmel/gwt-bean-validators

/**
 * constructor with injected parameters.
 *
 * @param peventBus event bus
 * @param pview navigation view
 * @param pproxy navigation proxy
 * @param pplaceManager place manager
 * @param pcurrentSession session data
 * @param pnavigationStructure place data
 */
@Inject
public NavigationPresenter(final EventBus peventBus, final NavigationPresenter.MyView pview,
  final MyProxy pproxy, final PlaceManager pplaceManager, final Session pcurrentSession,
  final NavigationStructure pnavigationStructure) {
 super(peventBus, pview, pproxy);
 pview.setPresenter(this);
 placeManager = pplaceManager;
 navigationStructure = pnavigationStructure;
 loginToken = NameTokens.LOGIN;
 logoutToken = NameTokens.LOGOUT;
 peventBus.addHandler(ChangeUserEvent.getType(), this);
 pnavigationStructure.buildVisibleNavigation(null);
 getView().createNavigation(navigationStructure);
 peventBus.addHandler(ChangePlaceEvent.getType(), this);
 pcurrentSession.readSessionData();
}
origin: de.knightsoft-net/gwtp-spring-integration-client

@Override
public void onFailure(final Throwable pcaught) {
 try {
  throw pcaught;
 } catch (final ActionException e) {
  switch (this.response.getStatusCode()) {
   case 401: // Unauthorized: happens when login fails
    this.view.showMessage(this.loginErrorMessage.messageLoginError(this.response.getText()));
    break;
   case 403: // Forbidden: happens when csrf token times out
    this.session.readSessionData();
    break;
   default:
    this.view.showMessage(this.httpMessage.messageHttpCode(this.response.getStatusCode()));
    break;
  }
 } catch (final Throwable e) {
  this.view.showMessage(this.loginErrorMessage.messageOtherError());
 }
}
origin: de.knightsoft-net/gwtp-spring-integration

@Override
public void onFailure(final Throwable pcaught) {
 try {
  throw pcaught;
 } catch (final ActionException e) {
  switch (this.response.getStatusCode()) {
   case 401: // Unauthorized: happens when login fails
    this.view.showMessage(this.loginErrorMessage.messageLoginError(this.response.getText()));
    break;
   case 403: // Forbidden: happens when csrf token times out
    this.session.readSessionData();
    break;
   default:
    this.view.showMessage(this.httpMessage.messageHttpCode(this.response.getStatusCode()));
    break;
  }
 } catch (final Throwable e) {
  this.view.showMessage(this.loginErrorMessage.messageOtherError());
 }
}
de.knightsoftnet.gwtp.spring.client.sessionSessionreadSessionData

Javadoc

read session data from server.

Popular methods of Session

  • setUser
    set user and fire change user event when user changes.
  • getUser
    get current user data.
  • isLoggedIn
    check if user is logged in.

Popular in Java

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now