abk.j2ee.dispatch
Class AHttpStatusDispatcher

java.lang.Object
  extended by abk.j2ee.dispatch.AHttpRequestDispatcher
      extended by abk.j2ee.dispatch.AHttpStatusDispatcher
All Implemented Interfaces:
javax.servlet.RequestDispatcher

public class AHttpStatusDispatcher
extends AHttpRequestDispatcher


Field Summary
private  String[] iLocation
           
private  String iMessage
           
private  int iStatusCode
           
 
Constructor Summary
private AHttpStatusDispatcher(int sc, String msg, String... location)
           
 
Method Summary
protected  void dispatch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void include(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
           
static AHttpStatusDispatcher SC_ACCEPTED(String msg)
           
static AHttpStatusDispatcher SC_CONTINUE(String msg)
           
static AHttpStatusDispatcher SC_CREATED(String msg)
           
static AHttpStatusDispatcher SC_FOUND(String location)
           
static AHttpStatusDispatcher SC_MOVED_PERMANENTLY(String location)
           
static AHttpStatusDispatcher SC_MOVED_TEMPORARILY(String location)
           
static AHttpStatusDispatcher SC_MULTIPLE_CHOICES(String... locations)
           
static AHttpStatusDispatcher SC_NO_CONTENT(String msg)
           
static AHttpStatusDispatcher SC_NON_AUTHORITATIVE_INFORMATION(String msg)
           
static AHttpStatusDispatcher SC_NOT_FOUND(String msg)
           
static AHttpStatusDispatcher SC_NOT_MODIFIED(String msg)
           
static AHttpStatusDispatcher SC_OK(String msg)
           
static AHttpStatusDispatcher SC_PARTIAL_CONTENT(String msg)
           
static AHttpStatusDispatcher SC_RESET_CONTENT(String msg)
           
static AHttpStatusDispatcher SC_SEE_OTHER(String location)
           
static AHttpStatusDispatcher SC_SWITCHING_PROTOCOLS(String msg)
           
static AHttpStatusDispatcher SC_USE_PROXY(String location)
           
static AHttpStatusDispatcher withLocation(int statusCode, String... location)
           
static AHttpStatusDispatcher withMessage(int statusCode, String msg)
           
 
Methods inherited from class abk.j2ee.dispatch.AHttpRequestDispatcher
dispatch, forward
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iStatusCode

private int iStatusCode

iMessage

private String iMessage

iLocation

private String[] iLocation
Constructor Detail

AHttpStatusDispatcher

private AHttpStatusDispatcher(int sc,
                              String msg,
                              String... location)
Method Detail

dispatch

protected void dispatch(javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response)
                 throws javax.servlet.ServletException,
                        IOException
Specified by:
dispatch in class AHttpRequestDispatcher
Throws:
javax.servlet.ServletException
IOException

include

public void include(javax.servlet.ServletRequest request,
                    javax.servlet.ServletResponse response)
             throws javax.servlet.ServletException,
                    IOException
Specified by:
include in interface javax.servlet.RequestDispatcher
Overrides:
include in class AHttpRequestDispatcher
Throws:
javax.servlet.ServletException
IOException

withMessage

public static final AHttpStatusDispatcher withMessage(int statusCode,
                                                      String msg)

withLocation

public static final AHttpStatusDispatcher withLocation(int statusCode,
                                                       String... location)

SC_CONTINUE

public static final AHttpStatusDispatcher SC_CONTINUE(String msg)

SC_SWITCHING_PROTOCOLS

public static final AHttpStatusDispatcher SC_SWITCHING_PROTOCOLS(String msg)

SC_OK

public static final AHttpStatusDispatcher SC_OK(String msg)

SC_CREATED

public static final AHttpStatusDispatcher SC_CREATED(String msg)

SC_ACCEPTED

public static final AHttpStatusDispatcher SC_ACCEPTED(String msg)

SC_NON_AUTHORITATIVE_INFORMATION

public static final AHttpStatusDispatcher SC_NON_AUTHORITATIVE_INFORMATION(String msg)

SC_NO_CONTENT

public static final AHttpStatusDispatcher SC_NO_CONTENT(String msg)

SC_RESET_CONTENT

public static final AHttpStatusDispatcher SC_RESET_CONTENT(String msg)

SC_PARTIAL_CONTENT

public static final AHttpStatusDispatcher SC_PARTIAL_CONTENT(String msg)

SC_MULTIPLE_CHOICES

public static final AHttpStatusDispatcher SC_MULTIPLE_CHOICES(String... locations)

SC_MOVED_PERMANENTLY

public static final AHttpStatusDispatcher SC_MOVED_PERMANENTLY(String location)

SC_MOVED_TEMPORARILY

public static final AHttpStatusDispatcher SC_MOVED_TEMPORARILY(String location)

SC_FOUND

public static final AHttpStatusDispatcher SC_FOUND(String location)

SC_SEE_OTHER

public static final AHttpStatusDispatcher SC_SEE_OTHER(String location)

SC_NOT_MODIFIED

public static final AHttpStatusDispatcher SC_NOT_MODIFIED(String msg)

SC_USE_PROXY

public static final AHttpStatusDispatcher SC_USE_PROXY(String location)

SC_NOT_FOUND

public static final AHttpStatusDispatcher SC_NOT_FOUND(String msg)


Copyright © 2024. All rights reserved.