Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
ofbiz-directcontrolservlet
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
15b9531c
authored
2014-04-23 11:11:34 -0500
by
Jerry Pommer
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'BF-2742' of /home/git/repositories/brainfood/ofbiz-directcontrolservlet
2 parents
ce3f4f2b
61cdbe88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
src/com/brainfood/ofbiz/DirectControlServlet.java
src/com/brainfood/ofbiz/DirectControlServlet.java
View file @
15b9531
...
...
@@ -18,6 +18,7 @@ import java.util.HashSet;
import
java.util.Enumeration
;
import
java.util.Locale
;
import
java.util.TimeZone
;
import
java.util.Iterator
;
import
javolution.util.FastList
;
...
...
@@ -112,13 +113,20 @@ public class DirectControlServlet extends HttpServlet {
Map
<
String
,
Object
>
context
=
new
HashMap
<
String
,
Object
>();
String
authToken
=
null
;
String
paramList
=
""
;
for
(
Iterator
<
String
>
k
=
request
.
getParameterMap
().
keySet
().
iterator
();
k
.
hasNext
();
)
{
paramList
+=
" "
+
k
.
next
();
}
Debug
.
logInfo
(
"PARAMETERS: "
+
request
.
getParameterMap
(),
module
);
// Handle if this is a form post
String
contentType
=
request
.
getContentType
();
if
(
contentType
!=
null
&&
contentType
.
indexOf
(
"x-www-form-urlencoded"
)
!=
-
1
)
{
method
=
request
.
getParameter
(
"_method"
);
Debug
.
logInfo
(
"Method: "
+
method
,
module
);
if
(
method
==
null
)
method
=
"POST"
;
String
httpMethod
=
request
.
getMethod
();
if
(
method
==
null
&&
httpMethod
!=
null
)
method
=
httpMethod
;
Debug
.
logInfo
(
"Method: HTTP("
+
httpMethod
+
") embedded("
+
method
+
")"
,
module
);
if
(
method
==
null
)
method
=
"GET"
;
// If this is a backbone PUT/DELETE emulated call then handle it
if
(
"PUT"
.
equals
(
method
)
||
"DELETE"
.
equals
(
method
)
||
"CALL"
.
equals
(
method
)
||
"POST"
.
equals
(
method
))
{
// if (!"CALL".equals(method)) context.put("_method", method);
...
...
Please
register
or
sign in
to post a comment