Package hirondelle.web4j.action

Examples of hirondelle.web4j.action.Operation


  
   <P>Uses {@link TranslatorImpl#startRecordingUnknowns()} and
   {@link TranslatorImpl#stopRecordingUnknowns()}.
  */
  public ResponsePage execute() throws AppException {
    Operation operation = Operation.valueOf(getParamUnsafe(SupportedOperation));
    if ( Operation.Start == operation ) {
      if( ! TranslatorImpl.isRecording() ){
        TranslatorImpl.read();//refreshes the in-memory cache
        TranslatorImpl.startRecordingUnknowns();
        addMessage("Started recording.");
View Full Code Here


    Set<RequestParameter> expectedParams = fExpectedParams.get(aAction.getClass());
    for (RequestParameter reqParam : expectedParams){
      if ( "Operation".equals(reqParam.getName()) ){
        String rawValue = aRequestParser.getRawParamValue(reqParam);
        if (Util.textHasContent(rawValue)){
          Operation operation = Operation.valueOf(rawValue);
          if ( isAttemptingSideEffectOperationWithoutPOST(operation, aRequestParser) ){
            fLogger.severe("Security problem. Attempted operation having side effects outside of a POST. Please use a <FORM> with method='POST'.");
            throw new BadRequestException(HttpServletResponse.SC_BAD_REQUEST);
          }
        }
View Full Code Here

TOP

Related Classes of hirondelle.web4j.action.Operation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.