Skip to content

Commit

Permalink
log and javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
peacekeeper committed Mar 6, 2017
1 parent 9ee6774 commit 2b73088
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public void setApplicationContext(ApplicationContext applicationContext) throws

if (log.isInfoEnabled()) log.info("Setting application context.");

// find beans

this.uriMessagingContainerRegistry = (UriMessagingContainerRegistry) applicationContext.getBean("UriMessagingContainerRegistry");
if (this.uriMessagingContainerRegistry == null) throw new NoSuchBeanDefinitionException("Required bean 'UriMessagingContainerRegistry' not found.");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public static ServletHttpTransportRequest fromHttpServletRequest(HttpServletRequ
try {

requestPath = URLDecoder.decode(requestPath, "UTF-8");
if (log.isDebugEnabled()) log.debug("Request Path: " + requestPath);
} catch (UnsupportedEncodingException ex) {

throw new RuntimeException(ex.getMessage(), ex);
Expand All @@ -60,6 +61,7 @@ public static ServletHttpTransportRequest fromHttpServletRequest(HttpServletRequ

String baseUri = httpServletRequest.getRequestURL().toString().substring(0, httpServletRequest.getRequestURL().length() - requestPath.length() + 1);
if (baseUri.endsWith("/")) baseUri = baseUri.substring(0, baseUri.length() - 1);
if (log.isDebugEnabled()) log.debug("Base URI: " + baseUri);

// done

Expand Down

0 comments on commit 2b73088

Please sign in to comment.