de.itsvs.cwtrpc.security
Class RpcRedirectStrategy
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
RpcRedirectStrategy
public RpcRedirectStrategy()
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)
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
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.