@Path(value="/stats") public class StatsSvc extends Object implements JerseySvc
Modifier and Type | Field and Description |
---|---|
private Throwable |
cause |
private static Map<String,Set<String>> |
imps |
private static int |
maxCookieAge |
static javax.ws.rs.core.CacheControl |
NO_CACHE |
static String |
PIXEL_B64 |
static byte[] |
PIXEL_BYTES |
private static Map<String,Set<String>> |
wins |
AUTH_COOKIE_DU_JOUR, RANDOM, USER_ID_COOKIE
Constructor and Description |
---|
StatsSvc() |
Modifier and Type | Method and Description |
---|---|
Object |
click(javax.ws.rs.core.UriInfo uriInfo,
String xch,
String ssp,
String cId,
String crId,
String bId,
String brId,
String iId,
String redir,
String cookies,
String ref,
String ua,
String xff,
javax.servlet.http.HttpServletRequest servletRequest,
String xrip,
String nodeId) |
Throwable |
getCause() |
private String |
getCookieDomain(String adId) |
static BidInFlightInfo |
handleWinLossError(String url,
ExchangeAdapter adapter,
String bId,
String brId,
String adId,
String reason,
Long winPrice) |
Object |
impression(javax.ws.rs.core.UriInfo uriInfo,
String exchange,
String ssp,
String wp,
String cId,
String crId,
String bId,
String iId,
String brId,
String bp,
long bidCreatedTimestamp,
String redir,
int nurl,
String forceCookieReset,
String forceCookieResync,
String ref,
String cookies,
String ua,
String custom,
String xff,
javax.servlet.http.HttpServletRequest servletRequest,
String xrip,
javax.ws.rs.core.HttpHeaders hh,
String buyerUid,
String nodeId)
Will assume:
using of in-line (
ad markup ) mechanism for now, as opposed to
Bid.getNurl()
adid and crid is Tag.getId() . |
Object |
nurl(javax.ws.rs.core.UriInfo uriInfo,
String exchange,
String ssp,
String contentType,
String wp,
String cId,
String crId,
String bId,
String iId,
String brId,
String bp,
long bidCreatedTimestamp,
String nurlId,
String ref,
String cookies,
String ua,
String custom,
String xff,
javax.servlet.http.HttpServletRequest servletRequest,
String xrip,
String ct,
String cte,
String myct,
String nodeId,
int nurlType) |
ParsedPriceInfo |
parsePriceInformation(ExchangeAdapter adapter,
String bp,
String wp,
String bId,
String cId,
String crId) |
byte[] |
pixel() |
Object |
proust(javax.ws.rs.core.UriInfo uriInfo,
String xch,
String ssp,
String cId,
String crId,
String bId,
String iId,
String brId,
String fcr,
String phase,
String ref,
String cookies,
String ua,
String custom,
String xff,
javax.servlet.http.HttpServletRequest servletRequest,
String xrip,
String lot49Version,
String nodeId)
Cookie-related handler.
|
Object |
redir(javax.ws.rs.core.UriInfo uriInfo,
String redir) |
Object |
resultAdX(javax.ws.rs.container.AsyncResponse response,
javax.ws.rs.core.UriInfo uriInfo,
com.google.protos.adx.NetworkBid.BidRequest.BidResponseFeedback fb,
String xff,
javax.servlet.http.HttpServletRequest servletRequest,
String xrip) |
Object |
resultsOpenX(javax.ws.rs.core.UriInfo uriInfo,
String cookies,
AuctionResultMessage auctionResults,
String xff,
javax.servlet.http.HttpServletRequest servletRequest,
String xrip,
javax.ws.rs.core.HttpHeaders hh)
Handle OpenX auction result message.
|
Object |
test(javax.ws.rs.core.UriInfo uriInfo,
String cookies,
String ua,
String cId,
javax.ws.rs.core.HttpHeaders hh) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMyCookie
private static final int maxCookieAge
public static final javax.ws.rs.core.CacheControl NO_CACHE
public static final String PIXEL_B64
public static final byte[] PIXEL_BYTES
private Throwable cause
@GET @Path(value="clk") public final Object click(@Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam(value="xch") String xch, @QueryParam(value="ssp") String ssp, @QueryParam(value="cid") String cId, @QueryParam(value="crid") String crId, @QueryParam(value="bid") String bId, @QueryParam(value="brid") String brId, @QueryParam(value="iid") String iId, @QueryParam(value="r") String redir, @HeaderParam(value="Cookie") String cookies, @HeaderParam(value="referer") String ref, @HeaderParam(value="user-agent") String ua, @HeaderParam(value="x-forwarded-for") String xff, @Context javax.servlet.http.HttpServletRequest servletRequest, @HeaderParam(value="x-real-ip") String xrip, @QueryParam(value="nodeId") String nodeId)
@GET @Path(value="proust") public final Object proust(@Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam(value="xch") String xch, @QueryParam(value="ssp") String ssp, @QueryParam(value="cid") String cId, @QueryParam(value="crid") String crId, @QueryParam(value="bid") String bId, @QueryParam(value="iid") String iId, @QueryParam(value="brid") String brId, @QueryParam(value="fcr") String fcr, @QueryParam(value="phase") String phase, @HeaderParam(value="referer") String ref, @HeaderParam(value="Cookie") String cookies, @HeaderParam(value="user-agent") String ua, @QueryParam(value="custom") String custom, @HeaderParam(value="x-forwarded-for") String xff, @Context javax.servlet.http.HttpServletRequest servletRequest, @HeaderParam(value="x-real-ip") String xrip, @QueryParam(value="lot49version") String lot49Version, @QueryParam(value="nodeId") String nodeId)
phase
- at the moment, one of the following:
Utils.createModUidCookie()
)
and sends it as a response with a redirect to self with a sync phasepartner-initiated sync
URI
for the given exchange, if available. Otherwise, just returns a pixel.ExchangeAdapter.getPartnerInitiatedSyncUrl(String)
,
Utils.createModUidCookie()
,
Utils.cookieToLogModUid(String)
,
Utils.logToCookieModUid(String)
@GET @Path(value="test") public final Object test(@Context javax.ws.rs.core.UriInfo uriInfo, @HeaderParam(value="Cookie") String cookies, @HeaderParam(value="user-agent") String ua, @QueryParam(value="cId") String cId, @Context javax.ws.rs.core.HttpHeaders hh)
@GET @Path(value="r") public final Object redir(@Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam(value="r") String redir)
@GET @Path(value="imp") public final Object impression(@Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam(value="xch") String exchange, @QueryParam(value="ssp") String ssp, @QueryParam(value="wp") String wp, @QueryParam(value="cid") String cId, @QueryParam(value="crid") String crId, @QueryParam(value="bid") String bId, @QueryParam(value="iid") String iId, @QueryParam(value="brid") String brId, @QueryParam(value="bp") String bp, @QueryParam(value="ts") long bidCreatedTimestamp, @QueryParam(value="r") String redir, @QueryParam(value="nurl") int nurl, @QueryParam(value="fcr") String forceCookieReset, @QueryParam(value="fcrx") String forceCookieResync, @HeaderParam(value="referer") String ref, @HeaderParam(value="Cookie") String cookies, @HeaderParam(value="user-agent") String ua, @QueryParam(value="custom") String custom, @HeaderParam(value="x-forwarded-for") String xff, @Context javax.servlet.http.HttpServletRequest servletRequest, @HeaderParam(value="x-real-ip") String xrip, @Context javax.ws.rs.core.HttpHeaders hh, @QueryParam(value="buid") String buyerUid, @QueryParam(value="nodeId") String nodeId)
ad markup
) mechanism for now, as opposed to
Bid.getNurl()
Tag.getId()
.
Ad.getId()
.
@GET @Produces(value="image/gif") @Path(value="pixel") public final byte[] pixel()
public static final BidInFlightInfo handleWinLossError(String url, ExchangeAdapter adapter, String bId, String brId, String adId, String reason, Long winPrice) throws Lot49Exception
Lot49Exception
@GET @Path(value="nurl") public final Object nurl(@Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam(value="xch") String exchange, @QueryParam(value="ssp") String ssp, @DefaultValue(value="text/html") @QueryParam(value="ctype") String contentType, @QueryParam(value="wp") String wp, @QueryParam(value="cid") String cId, @QueryParam(value="crid") String crId, @QueryParam(value="bid") String bId, @QueryParam(value="iid") String iId, @QueryParam(value="brid") String brId, @QueryParam(value="bp") String bp, @QueryParam(value="ts") long bidCreatedTimestamp, @QueryParam(value="nurlId") String nurlId, @HeaderParam(value="referer") String ref, @HeaderParam(value="Cookie") String cookies, @HeaderParam(value="user-agent") String ua, @QueryParam(value="custom") String custom, @HeaderParam(value="x-forwarded-for") String xff, @Context javax.servlet.http.HttpServletRequest servletRequest, @HeaderParam(value="x-real-ip") String xrip, @QueryParam(value="ct") String ct, @QueryParam(value="cte") String cte, @QueryParam(value="myct") String myct, @QueryParam(value="nodeId") String nodeId, @QueryParam(value="nt") int nurlType)
public final ParsedPriceInfo parsePriceInformation(ExchangeAdapter adapter, String bp, String wp, String bId, String cId, String crId)
public Throwable getCause()
@POST @Path(value="adx/results") @Consumes(value="application/octet-stream") @Produces(value="application/octet-stream") public final Object resultAdX(@Suspended javax.ws.rs.container.AsyncResponse response, @Context javax.ws.rs.core.UriInfo uriInfo, com.google.protos.adx.NetworkBid.BidRequest.BidResponseFeedback fb, @HeaderParam(value="x-forwarded-for") String xff, @Context javax.servlet.http.HttpServletRequest servletRequest, @HeaderParam(value="x-real-ip") String xrip)
@POST @Path(value="openx/results") @Consumes(value="application/json") public final Object resultsOpenX(@Context javax.ws.rs.core.UriInfo uriInfo, @HeaderParam(value="Cookie") String cookies, AuctionResultMessage auctionResults, @HeaderParam(value="x-forwarded-for") String xff, @Context javax.servlet.http.HttpServletRequest servletRequest, @HeaderParam(value="x-real-ip") String xrip, @Context javax.ws.rs.core.HttpHeaders hh)
log the loss