1 18 package org.apache.beehive.netui.pageflow.internal; 19 20 import org.apache.beehive.netui.pageflow.ActionResult; 21 22 import java.io.PrintWriter ; 23 24 27 public class ActionResultImpl implements ActionResult 28 { 29 private String _uri = null; 30 private boolean _isRedirect = false; 31 private int _statusCode = 0; 32 private String _statusMessage = null; 33 private boolean _isError = false; 34 35 36 protected ActionResultImpl() 37 { 38 } 39 40 public ActionResultImpl( String uri, boolean redirect, int statusCode, String statusMessage, boolean isError ) 41 { 42 _uri = uri; 43 _isRedirect = redirect; 44 _statusCode = statusCode; 45 _statusMessage = statusMessage; 46 _isError = isError; 47 } 48 49 public String getURI() 50 { 51 return _uri; 52 } 53 54 public void setURI( String uri ) 55 { 56 _uri = uri; 57 } 58 59 public boolean isRedirect() 60 { 61 return _isRedirect; 62 } 63 64 public void setRedirect( boolean redirect ) 65 { 66 _isRedirect = redirect; 67 } 68 69 public boolean isError() 70 { 71 return _isError; 72 } 73 74 public void setError( boolean error ) 75 { 76 _isError = error; 77 } 78 79 public int getStatusCode() 80 { 81 return _statusCode; 82 } 83 84 public void setStatusCode( int statusCode ) 85 { 86 _statusCode = statusCode; 87 } 88 89 public String getStatusMessage() 90 { 91 return _statusMessage; 92 } 93 94 public void setStatusMessage( String statusMessage ) 95 { 96 _statusMessage = statusMessage; 97 } 98 99 public boolean hadCompileErrors() 100 { 101 return false; 102 } 103 104 public void printCompileErrors( PrintWriter writer ) 105 { 106 } 107 } 108 | Popular Tags |