package
org
.
pagecentric
.
util
;
import
java
.
util
.
*
;
public
class
HTTPContext
{
private
dictionary
request
;
public
HTTPContext
(
)
{
this
.
request
=
new
dictionary
(
)
;
populateRequest
(
this
.
request
,
System
.
getenv
(
)
)
;
dictionary
d
=
new
dictionary
<
String
>
(
)
;
}
public
dictionary
getRequest
(
)
{
return
request
;
}
public
void
populateRequest
(
dictionary
request
,
Map
env
)
{
Set
,
String
>
>
set
=
env
.
entrySet
(
)
;
Iterator
,
String
>
>
it
=
set
.
iterator
(
)
;
while
(
it
.
hasNext
(
)
)
{
Map.Entry
e
=
it
.
next
(
)
;
String
key
=
e
.
getKey
(
)
;
String
val
=
e
.
getValue
(
)
;
request
.
put
(
key
,
val
)
;
}
}
}