HTTPResponseCodeAspectHTTPResponseCodeAspect
An aspect to process HTTP Response Codes
Home > Books > NetKernel API and Services Reference > Aspect Listing > General Aspects > HTTPResponseCodeAspect

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


Module

urn:org:ten60:netkernel:ext:http:client

Class

org.ten60.netkernel.httpclient.representation.HttpResponseCodeAspect

Purpose

An aspect to return HttpResponse code from a httpXXX accessor.


public class HttpResponseCodeAspect implements IURAspect
{
    private int mCode;
    private String mMessage;
    
    /** Creates a new instance of HttpClientConfigAspect */
    public HttpResponseCodeAspect(int aCode, String aMessage)
    {   mCode=aCode; mMessage=aMessage;
    }
    
    public int getCode()
    {   return mCode;
    }
    
    public String getMessage()
    {   return mMessage;        
    }
}

© 2003-2007, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.