|
Reality Interface Classes | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.northgateis.realweb
Class RealWebUrl
java.lang.Object | +--com.northgateis.realweb.RealWebUrl
- public class RealWebUrl
- extends java.lang.Object
Process additional path information into usable fields
Field Summary | |
java.lang.String
|
command
The second path component after the servlet name |
boolean
|
debug
set to true if first path component contains 'Debug' |
java.lang.String
|
page
The third path component after the servlet name |
java.lang.String
|
pathInfo
The rest of the path after the servlet name |
int
|
reqNo
The request number |
java.lang.String
|
section
The first path component after the servlet name |
Constructor Summary | |
RealWebUrl(javax.servlet.http.HttpServletRequest req) Process the additional path information and extract bits of interest. | |
RealWebUrl(javax.servlet.http.HttpServletRequest req,
int reqNo) Process the additional path information and extract bits of interest. | |
RealWebUrl(java.lang.String section) Create an empty class with just the section name defined |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
pathInfo
public java.lang.String pathInfo
- The rest of the path after the servlet name
section
public java.lang.String section
- The first path component after the servlet name
command
public java.lang.String command
- The second path component after the servlet name
page
public java.lang.String page
- The third path component after the servlet name
debug
public boolean debug
- set to true if first path component contains 'Debug'
reqNo
public int reqNo
- The request number
Constructor Detail |
RealWebUrl
public RealWebUrl(java.lang.String section)
- Create an empty class with just the section name defined
RealWebUrl
public RealWebUrl(javax.servlet.http.HttpServletRequest req) throws RealWebException
- Process the additional path information and extract bits of interest.
The path information after the servlet name is expected to look like [/Debug]/section/command[/page]. These elements are parsed and loaded into this class.
If there is no additional path information then the following parameters can be used instead:
Parameter section => attribute section Parameter subroutine => attribute command Parameter debug => attribute debug
At least 'section' and 'command' must be defined.- Parameters:
req
- the HttpServletRequest- Throws:
- RealWebExeption - if insufficient information available
RealWebUrl
public RealWebUrl(javax.servlet.http.HttpServletRequest req, int reqNo) throws RealWebException
- Process the additional path information and extract bits of interest.
The path information after the servlet name is expected to look like [/Debug]/section/command[/page]. These elements are parsed and loaded into this class.
If there is no additional path information then the following parameters can be used instead:
Parameter section => attribute section Parameter subroutine => attribute command Parameter debug => attribute debug
At least 'section' and 'command' must be defined.- Parameters:
req
- the HttpServletRequestreqNo
- request number - if non zero causes RealWeb to generate debug logging to err.- Throws:
- RealWebExeption - if insufficient information available
| Reality Interface Classes | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2000 NEC Software Services (UK) Limited