com.ibm.mashups.proxy.ext
Interface FlowControl


public interface FlowControl

Control to influence the flow of the custom, policy-specific filter chain.

Since:
9.0

Method Summary
 void setError(int sc, java.lang.String msg)
          Sets an error response on the connection using the specified status.
 void setRedirect(java.lang.String redirectionURL)
          Sets a redirection response to an error page as a result of an error.
 

Method Detail

setError

void setError(int sc,
              java.lang.String msg)
Sets an error response on the connection using the specified status. The connection defaults to creating the response to look like an HTML-formatted server error page containing the specified message, setting the content type to "text/html", leaving cookies and other headers unmodified. After using this method, the response should be considered to be committed and should not be written to.

Parameters:
sc - the error status code
msg - the descriptive message, can be null

setRedirect

void setRedirect(java.lang.String redirectionURL)
Sets a redirection response to an error page as a result of an error. After using this method, the response should be considered to be committed and should not be written to.

Parameters:
redirectionURL - the redirection URL. Must not be null or empty.