CWTRPC
0.9.0

de.itsvs.cwtrpc.security
Class RpcRedirectStrategy

java.lang.Object
  extended by de.itsvs.cwtrpc.security.RpcRedirectStrategy
All Implemented Interfaces:
RedirectStrategy
Direct Known Subclasses:
RpcAuthenticationRedirectStrategy

public class RpcRedirectStrategy
extends Object
implements RedirectStrategy

Since:
0.9
Author:
Volker Schmidt

Field Summary
protected static String CHARACTER_ENCODING
           
protected static String CONTENT_TYPE
           
protected static String DEFAULT_RESPONSE_TEXT
           
 
Constructor Summary
RpcRedirectStrategy()
           
 
Method Summary
protected  void addNoCacheResponseHeaders(HttpServletRequest request, HttpServletResponse response)
           
protected  String createResponseText(HttpServletRequest request, HttpServletResponse response, String url)
           
 int getStatusCode()
           
 String getText()
           
 boolean isError()
           
 void sendRedirect(HttpServletRequest request, HttpServletResponse response, String url)
           
 void setError(boolean error)
           
 void setStatusCode(int statusCode)
           
 void setText(String text)
           
protected  void writeResponseText(HttpServletRequest request, HttpServletResponse response, String characterEncoding, String responseText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_TYPE

protected static final String CONTENT_TYPE
See Also:
Constant Field Values

CHARACTER_ENCODING

protected static final String CHARACTER_ENCODING
See Also:
Constant Field Values

DEFAULT_RESPONSE_TEXT

protected static final String DEFAULT_RESPONSE_TEXT
See Also:
Constant Field Values
Constructor Detail

RpcRedirectStrategy

public RpcRedirectStrategy()
Method Detail

isError

public boolean isError()

setError

public void setError(boolean error)

getStatusCode

public int getStatusCode()

setStatusCode

public void setStatusCode(int statusCode)

getText

public String getText()

setText

public void setText(String text)

sendRedirect

public void sendRedirect(HttpServletRequest request,
                         HttpServletResponse response,
                         String url)
                  throws IOException
Specified by:
sendRedirect in interface RedirectStrategy
Throws:
IOException

writeResponseText

protected void writeResponseText(HttpServletRequest request,
                                 HttpServletResponse response,
                                 String characterEncoding,
                                 String responseText)
                          throws IOException
Throws:
IOException

createResponseText

protected String createResponseText(HttpServletRequest request,
                                    HttpServletResponse response,
                                    String url)

addNoCacheResponseHeaders

protected void addNoCacheResponseHeaders(HttpServletRequest request,
                                         HttpServletResponse response)

Controlled
Web Toolkit RPC

Copyright 2011 IT Services VS GmbH
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.