private static final long serialVersionUID = 1L;
+ /**
+ * @return the searchWrapper
+ */
+ public SearchServiceWrapper getSearchWrapper() {
+ return searchWrapper;
+ }
+
+ /**
+ * @param searchWrapper the searchWrapper to set
+ */
+ public void setSearchWrapper(SearchServiceWrapper searchWrapper) {
+ this.searchWrapper = searchWrapper;
+ }
+
+ /**
+ * @return the serialversionuid
+ */
+ public static long getSerialversionuid() {
+ return serialVersionUID;
+ }
+
+ /**
+ * @return the log
+ */
+ public static Logger getLog() {
+ return LOG;
+ }
+
+ /**
+ * @return the keyPayload
+ */
+ public static String getKeyPayload() {
+ return KEY_PAYLOAD;
+ }
+
+
private static final Logger LOG = LoggerFactory.getInstance().getLogger(SearchServlet.class);
private SearchServiceWrapper searchWrapper = null;
private static final String KEY_PAYLOAD = "payload";
-
+
/**
* Instantiates a new search servlet.
*/
- public SearchServlet() {
- }
+ public SearchServlet() {}
/*
* (non-Javadoc)
doPost(request, response);
}
- public void destroy() {
+ public void destroy() {
// TODO Auto-generated method stub
super.destroy();
}
-
+
public void init() throws ServletException {
super.init();
searchWrapper = new SearchServiceWrapper();
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String txnID = request.getHeader("X-TransactionId");
- if (txnID == null) {
+ if (txnID == null) {
txnID = NodeUtils.getRandomTxnId();
}
}
}
-
-
+
}