}\r
\r
public void ipAuthenticate (ServiceProxyUser user) {\r
- if (!user.isAuthenticated()) {\r
+ if (!user.isIpAuthenticated()) {\r
+ if (user.isAuthenticated()) {\r
+ user.clear();\r
+ }\r
((ServiceProxyClient)searchClient).ipAuthenticate(user);\r
}\r
}\r
}\r
\r
@Override\r
- public String postInit(byte[] initDoc) throws UnsupportedEncodingException, IOException { \r
+ public String postInit(byte[] initDoc, boolean includeDebug) throws UnsupportedEncodingException, IOException { \r
pzresp.reset();\r
- byte[] response = ((ServiceProxyClient)searchClient).postInitDoc(initDoc);\r
+ byte[] response = ((ServiceProxyClient)searchClient).postInitDoc(initDoc,includeDebug);\r
initDocResponse = new String(response,"UTF-8");\r
return initDocResponse;\r
}\r
\r
-\r
@Override\r
public String getInitResponse() {\r
return initDocResponse;\r
return initDocPaths;\r
}\r
\r
- public byte[] postInitDoc(byte[] initDoc) throws IOException {\r
- HttpPost post = new HttpPost(selectedServiceUrl+"?command=init&includeDebug=yes");\r
+ public byte[] postInitDoc(byte[] initDoc, boolean includeDebug) throws IOException {\r
+ HttpPost post = new HttpPost(selectedServiceUrl+"?command=init" + (includeDebug? "&includeDebug=yes" : ""));\r
post.setEntity(new ByteArrayEntity(initDoc));\r
byte[] response = client.execute(post, handler);\r
logger.debug("Response on POST was: " + new String(response,"UTF-8")); \r
public void setInitFileName (String fileName); \r
public String getInitFileName();\r
public String postInit() throws UnsupportedEncodingException, IOException;\r
- public String postInit(byte[] initDoc) throws UnsupportedEncodingException, IOException;\r
+ public String postInit(byte[] initDoc, boolean includeDebug) throws UnsupportedEncodingException, IOException;\r
public String getInitResponse();\r
public void setServiceProxyUrl(String url);\r
public String getServiceProxyUrl();\r