我有一个 SOAPHandler。我需要捕获响应的请求
public class SOAPLoggingHandler implements SOAPHandler<SOAPMessageContext> {
@Override
public boolean handleFault(SOAPMessageContext context) {
writeMessageLogging(context);
return true;
}
public boolean handleMessage(SOAPMessageContext context) {
writeMessageLogging(context);
return true;
}
private void writeMessageLogging(SOAPMessageContext smc) {
Boolean outboundProperty = (Boolean) smc
.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
if (logger.isDebugEnabled()) {
if (outboundProperty.booleanValue()) {
logger.debug("Request message");
} else {
logger.debug("Response message:");
}
}
SOAPMessage message = smc.getMessage();
ByteArrayOutputStream out=null;
try {
if (!outboundProperty.booleanValue()) {
String requestXML="Request of the Response, is possible?";
}
out = new ByteArrayOutputStream();
message.writeTo(out);
String strMsg = …Run Code Online (Sandbox Code Playgroud) 我有一个脚本:
newerthan="2016-02-08"
olderthan="2016-04-29"
find / -type f -name "*" -newermt "$newerthan" ! -newermt "$olderthan" -ls
Run Code Online (Sandbox Code Playgroud)
该列表文件:
16481 0 -r--r--r-- 1 root root 4096 Mar 16 11:41 /sys/module/sunrpc/srcversion
16482 0 -r--r--r-- 1 root root 4096 Mar 13 04:42 /sys/module/sunrpc/initstate
16483 0 -r--r--r-- 1 root root 4096 Mar 16 11:41 /sys/module/sunrpc/refcnt
16485 0 -r--r--r-- 1 root root 4096 Mar 17 11:41 /sys/module/sunrpc/sections/.note.gnu.build-id
16486 0 -r--r--r-- 1 root root 4096 Mar 12 11:41 /sys/module/sunrpc/sections/.text
Run Code Online (Sandbox Code Playgroud)
是否可以按日期、结果排序?